-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
38 lines (32 loc) · 1.37 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python
import glob
import os
import sys
from distutils.sysconfig import get_config_vars
# from setuptools import setup
from setuptools import setup
# Bail on Python < 3
assert sys.version_info[0] >= 3
# MF. This is a workaround to be able to build the library with MacOS
if sys.platform == 'darwin':
vars = get_config_vars()
vars['LDSHARED'] = vars['LDSHARED'].replace('-bundle', '-dynamiclib')
os.environ["CC"] = "clang"
# NB. These are not really Python extensions (i.e., they do not
# Py_Initialize() and they do define main() ), we are just cheating to
# re-use the setuptools build support.
packages = ['data_models', 'processing_library', 'processing_components', 'workflows', 'wrappers']
package_data = [i for p in packages for i in glob.glob(p + '/*/') + glob.glob(p + '/*/*/')]
setup(name='algorithm-reference-library',
version='0.9',
python_requires='>=3',
description='Algorithm Reference Library for Radio Interferometry',
long_description=open('README.md').read(),
author='Tim Cornwell, Peter Wortmann, Bojan Nikolic, Montse Farreras, Feng Wang',
author_email='realtimcornwell@gmail.com',
url='https://github.com/SKA-ScienceDataProcessor/algorithm-reference-library',
license='Apache License Version 2.0',
packages=(packages + package_data),
test_suite="tests",
tests_require=['pytest']
)