-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
45 lines (42 loc) · 1.49 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
from setuptools import setup
from pybind11.setup_helpers import Pybind11Extension, build_ext
ext_modules = [
Pybind11Extension(
"harmonica/bindings",
[
'harmonica/orbit/kepler.cpp',
'harmonica/orbit/trajectories.cpp',
'harmonica/orbit/gradients.cpp',
'harmonica/light_curve/fluxes.cpp',
'harmonica/light_curve/gradients.cpp',
'harmonica/bindings.cpp'
],
include_dirs=["vendor/eigen", "vendor/pybind11"],
language="c++",
extra_compile_args=["-O2", "-ffast-math"]
),
]
setup(
name="planet-harmonica",
version="0.1.1",
author="David Grant",
author_email="[email protected]",
url="https://github.com/DavoGrant/harmonica",
license="MIT",
packages=["harmonica", "harmonica.jax"],
description="Light curves for exoplanet transmission mapping.",
long_description="Light curves for exoplanet transmission mapping.",
python_requires=">=3.6",
install_requires=["numpy", "jax", "jaxlib"],
cmdclass={"build_ext": build_ext},
ext_modules=ext_modules,
classifiers=[
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Software Development :: Libraries :: Python Modules"
],
)