forked from roban/CosmoloPy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·83 lines (68 loc) · 2.7 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
#!/usr/bin/env python
from setuptools import setup, find_packages, Extension
import os
#import nose
eh_dir = os.path.join('.','cosmolopy','EH')
### I used to let distutils run swig for me on power.i to create
### power_wrap.c and power.py, but that stopped working for some
### reason.
# Stuff used to build the cosmolopy.EH._power module:
#power_module = Extension('cosmolopy.EH._power',
# sources=[os.path.join(eh_dir, 'power.i'),
# os.path.join(eh_dir, 'power.c')]
# )
power_module = Extension('cosmolopy.EH._power',
sources=[os.path.join(eh_dir, 'power_wrap.c'),
os.path.join(eh_dir, 'power.c')]
)
tf_fit_module = Extension('cosmolopy.EH._tf_fit',
sources=[os.path.join(eh_dir, 'tf_fit_wrap.c'),
os.path.join(eh_dir, 'tf_fit.c')]
)
packages = find_packages()
setup(
name = "CosmoloPy",
version = "0.1.105",
packages = packages,
# package_data = {
# # If any package contains *.so files, include them:
# '': ['*.so'],
# },
install_requires = ['numpy', 'scipy',],
ext_modules = [power_module, tf_fit_module],
tests_require = ['nose', 'matplotlib'],
test_suite = 'nose.collector',
# metadata for upload to PyPI
author = "Roban Hultman Kramer",
author_email = "[email protected]",
description = "a cosmology package for Python.",
url = "http://roban.github.com/CosmoloPy/", # project home page
keywords = ("astronomy cosmology cosmological distance density galaxy" +
"luminosity magnitude reionization Press-Schechter Schecter"),
license = "MIT",
long_description = \
"""CosmoloPy is a package of cosmology routines built on NumPy/SciPy.
Capabilities include
--------------------
`cosmolopy.density`
Various cosmological densities.
`cosmolopy.distance`
Various cosmological distance measures.
`cosmolopy.luminosityfunction`
Galaxy luminosity functions (Schecter functions).
`cosmolopy.magnitudes`
Conversion in and out of the AB magnitude system.
`cosmolopy.parameters`
Pre-defined sets of cosmological parameters (e.g. from WMAP).
`cosmolopy.perturbation`
Perturbation theory and the power spectrum.
`cosmolopy.reionization`
The reionization of the IGM.
""",
classifiers = ['License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Topic :: Scientific/Engineering :: Astronomy',
'Operating System :: OS Independent'
]
)