This repository was archived by the owner on Jun 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (33 loc) · 1.31 KB
/
setup.py
File metadata and controls
39 lines (33 loc) · 1.31 KB
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
39
#!/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 = ['rascil']
package_data = [i for p in packages for i in
glob.glob(p + '/*/') + glob.glob(p + '/*/*/') + glob.glob(p + '/*/*/*/')]
setup(name='rascil',
version='0.1.5',
python_requires='>=3.6',
description='Radio Astronomy Simulation, Calibration, and Imaging Library',
long_description=open('README.md').read(),
author='Tim Cornwell, Peter Wortmann, Bojan Nikolic, Feng Wang, Vlad Stolyarov',
author_email='realtimcornwell@gmail.com',
url='https://github.com/SKA-ScienceDataProcessor/rascil',
license='Apache License Version 2.0',
packages=(packages + package_data),
test_suite="tests",
tests_require=['pytest']
)