-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
32 lines (29 loc) · 1.03 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
import os
from setuptools import find_packages
from numpy.distutils.core import setup, Extension
# The Fortran extension for nnls_burst
nnls_sources = ['mnbrak.f90', 'nnls_burst.f90', 'dbrent.f90',
'fit_cont_nnls.f90']
ext = Extension('pyplatefit.nnls_burst',
[os.path.join('pyNNLS', f) for f in nnls_sources])
install_requires = ['numpy', 'astropy', 'scipy', 'numdifftools',
'lmfit', 'mpdaf', 'more-itertools',
'emcee', 'pandas']
setup(
name='pyplatefit',
description='emission/absorption lines spectrum fitting',
author='Roland Bacon',
author_email='[email protected]',
packages=find_packages(),
package_data={
'pyplatefit': ['BC03/*', 'refdata/lines_table_platefit.fits']
},
zip_safe=False,
include_package_data=True,
install_requires=install_requires,
extras_require={
'docs': ['sphinx', 'sphinx_rtd_theme', 'sphinx_automodapi',
'numpydoc', 'nbsphinx'],
},
ext_modules=[ext],
)