-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
37 lines (33 loc) · 1.39 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
import re
import numpy
#from distutils.core import setup, Extension
from setuptools import setup, Extension
VERSIONFILE='src/_version.py'
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
marsh_module = Extension('Marsh',
sources = ['src/c-code/OptimalExtraction/Marsh.c'],
libraries=['gsl', 'gslcblas', 'm'],
include_dirs=[numpy.get_include(),'/usr/local/include'])
ccf_module = Extension('CCF',
sources = ['src/c-code/Utilities/CCF.c'],
libraries=['m'],
include_dirs=[numpy.get_include(),'/usr/local/include'])
setup(name='transitspectroscopy',
version=verstr,
description='transitspectroscopy: a library for all your transit spectroscopy needs',
url='http://github.com/nespinoza/transitspectroscopy',
author='Nestor Espinoza',
author_email='[email protected]',
license='MIT',
packages=['transitspectroscopy'],
package_dir={'transitspectroscopy': 'src'},
install_requires=['numpy','scipy', 'jwst', 'astropy', 'jdcal'],
python_requires='>=3.0',
ext_modules = [marsh_module, ccf_module],
zip_safe=False)