forked from guaix-ucm/megaradrp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
63 lines (60 loc) · 2.25 KB
/
setup.py
File metadata and controls
63 lines (60 loc) · 2.25 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from setuptools import find_packages, setup
from setuptools import setup, Extension
# try to handle gracefully Cython
try:
from Cython.Distutils import build_ext
ext1 = Extension('megaradrp.trace._traces',
['megaradrp/trace/traces.pyx',
'megaradrp/trace/Trace.cpp'],
language='c++')
ext2 = Extension('megaradrp.trace._extract',
['megaradrp/trace/extract.pyx'],
language='c++')
cmdclass = {'build_ext': build_ext}
except ImportError:
print('We do not have Cython, just using the generated files')
ext1 = Extension('megaradrp.trace._traces',
['megaradrp/trace/traces.cpp',
'megaradrp/trace/Trace.cpp'],
language='c++')
ext2 = Extension('megaradrp.trace._extract',
['megaradrp/trace/extract.cpp'],
language='c++')
cmdclass = {}
setup(name='megaradrp',
version='0.5.dev',
author='Sergio Pascual',
author_email='sergiopr@fis.ucm.es',
url='http://guaix.fis.ucm.es/hg/megaradrp',
license='GPLv3',
description='MEGARA Data Reduction Pipeline',
packages=find_packages(),
package_data={'megaradrp': ['drp.yaml', 'primary.txt']},
install_requires=[
'numpy',
'astropy >= 0.4, < 0.5',
'scipy',
'numina >= 0.13.0',
],
zip_safe=False,
ext_modules=[ext1, ext2],
cmdclass=cmdclass,
entry_points = {
'numina.pipeline.1': [
'megara = megaradrp.loader:megara_drp_load',
],
'numina.storage.1': [
'megara_default = megaradrp.loader:load_cli_storage',
]
},
classifiers=[
"Programming Language :: Python :: 2.7",
'Development Status :: 3 - Alpha',
"Environment :: Other Environment",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Astronomy",
],
long_description=open('README.rst').read()
)