forked from psheehan/pdspy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
92 lines (80 loc) · 3.52 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
from setuptools import setup
from numpy.distutils.core import setup, Extension
from Cython.Build import cythonize
from distutils.command.sdist import sdist
cmdclass={'sdist': sdist}
# Set up the extension modules.
libinterferometry = cythonize([\
Extension('pdspy.interferometry.libinterferometry',\
["pdspy/interferometry/libinterferometry.pyx"],\
libraries=["m"], extra_compile_args=['-ffast-math'])])[0]
libimaging = cythonize([Extension('pdspy.imaging.libimaging',\
["pdspy/imaging/libimaging.pyx"], libraries=[], \
extra_compile_args=[])])[0]
bhmie = Extension('pdspy.dust.bhmie', sources=['pdspy/dust/bhmie.f90'])
bhcoat = Extension('pdspy.dust.bhcoat', sources=['pdspy/dust/bhcoat.f90'])
dmilay = Extension('pdspy.dust.dmilay', sources=['pdspy/dust/DMiLay.f90'])
read = cythonize([Extension('pdspy.radmc3d.read', ["pdspy/radmc3d/read.pyx"], \
libraries=[], extra_compile_args=[])])[0]
# Now define the setup for the package.
setup(name="pdspy", \
version="1.5.0", \
author="Patrick Sheehan", \
author_email="[email protected]", \
description="Radiative transfer modeling of protoplanetary disks", \
long_description=open("README.md","r").read(), \
long_description_content_type="text/markdown", \
url="https://github.com/psheehan/pdspy", \
packages=[\
"pdspy",\
"pdspy.constants", \
"pdspy.dust",\
"pdspy.gas",\
"pdspy.imaging",\
"pdspy.interferometry", \
"pdspy.mcmc",\
"pdspy.misc",\
"pdspy.modeling",\
"pdspy.plotting", \
"pdspy.radmc3d",\
"pdspy.spectroscopy",\
"pdspy.stars",\
"pdspy.statistics", \
"pdspy.table", \
"pdspy.utils"], \
package_dir={\
"pdspy.dust": 'pdspy/dust', \
"pdspy.gas": 'pdspy/gas', \
"pdspy.spectroscopy": 'pdspy/spectroscopy', \
"pdspy.stars": 'pdspy/stars'}, \
package_data={\
'pdspy.dust': ['data/*','reddening/*.dat'], \
'pdspy.imaging': ['*.pyx'], \
'pdspy.interferometry': ['*.pyx'], \
'pdspy.gas': ['data/*.dat'], \
'pdspy.radmc3d': ['*.pyx'], \
'pdspy.spectroscopy': ['btsettle_data/*.txt'], \
'pdspy.stars': ['evolutionary_tracks/*',\
'evolutionary_tracks/bressan2012/*',\
'evolutionary_tracks/bressan2012/Z0.014Y0.273/*',\
'evolutionary_tracks/bressan2012/Z0.017Y0.279/*',\
'evolutionary_tracks/dotter2008/*',\
'evolutionary_tracks/feiden2016/mag/*',\
'evolutionary_tracks/feiden2016/std/*',\
'evolutionary_tracks/siess_2000/*',\
'evolutionary_tracks/tognelli2011/Z0.02000_Y0.2700_XD2E5_ML1.68_AS05/*',\
'evolutionary_tracks/tognelli2011/Z0.02000_Y0.2700_XD4E5_ML1.68_AS05/*',\
'evolutionary_tracks/tognelli2011/Z0.02000_Y0.2880_XD2E5_ML1.68_AS05/*',\
'evolutionary_tracks/tognelli2011/Z0.02000_Y0.2880_XD4E5_ML1.68_AS05/*']}, \
ext_modules=[libinterferometry, libimaging, bhmie, \
bhcoat, dmilay, read], \
scripts=[\
'bin/config_template.py',\
'bin/disk_model.py',\
'bin/disk_model_powerlaw.py',\
'bin/flared_model.py',\
'bin/flared_model_ptsampler.py',\
'bin/flared_model_nested.py'], \
install_requires=['numpy','scipy','matplotlib','emcee','corner',\
'hyperion','h5py','mpi4py','Cython','astropy','schwimmbad','dynesty'], \
cmdclass=cmdclass)