-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
45 lines (41 loc) · 1.58 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
39
40
41
42
43
44
45
import setuptools # this is the "magic" import
from numpy.distutils.core import setup, Extension
from numpy.distutils import exec_command
from glob import glob
import os
with open("README.md", "r") as fh:
long_description = fh.read()
DATA_DIR="src/spectralradex/radex/data/"
#exec_command.exec_command( "make python", execute_in='src/radex_src/', use_shell=True)
if not os.getenv('READTHEDOCS'):
radexwrap = Extension(name = 'radexwrap',
sources = ['src/radex_src/'+x for x in ['types.f90','commondata.f90','slatec.f90',
'solver.f90','background.f90','io.f90','wrap.f90','radexwrap.pyf']])
ext_mods=[radexwrap]
data_files=[("spectralradex/radex/data",glob(DATA_DIR))]
else:
ext_mods=[]
data_files=[]
exec(open('src/spectralradex/version.py').read())
setup(
name="spectralradex", # Replace with your own username
version=__version__,
author="Jonathan Holdship",
author_email="jonholdship@gmail.com",
description="A package for RADEX and spectral modelling",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://spectralradex.readthedocs.io",
ext_modules = ext_mods,
package_dir={'': 'src'},
packages=setuptools.find_packages(where='src'),
data_files=data_files,
classifiers=[
'Development Status :: 5 - Production/Stable',
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=['pandas','numpy']
)