forked from hannorein/rebound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (62 loc) · 2.79 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
try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup, Extension
from codecs import open
import os
libreboundmodule = Extension('librebound',
sources = [ 'src/rebound.c',
'src/integrator_ias15.c',
'src/integrator_whfast.c',
'src/integrator_wh.c',
'src/integrator_leapfrog.c',
'src/integrator_sei.c',
'src/integrator_hybrid.c',
'src/integrator.c',
'src/gravity.c',
'src/boundary.c',
'src/collision.c',
'src/tools.c',
'src/tree.c',
'src/particle.c',
'src/output.c',
'src/input.c',
],
include_dirs = ['src'],
define_macros=[ ('LIBREBOUND', None) ],
extra_compile_args=['-fstrict-aliasing', '-O3','-std=c99','-march=native','-Wno-unknown-pragmas', '-DLIBREBOUND', '-D_GNU_SOURCE', '-fPIC'],
)
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(name='rebound',
version='2.9.0',
description='An open-source multi-purpose N-body code',
long_description=long_description,
url='http://github.com/hannorein/rebound',
author='Hanno Rein',
author_email='[email protected]',
license='GPL',
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 5 - Production/Stable',
# Indicate who your project is intended for
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'Topic :: Scientific/Engineering :: Astronomy',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
keywords='astronomy astrophysics nbody integrator symplectic wisdom-holman',
packages=['rebound'],
install_requires=[],
ext_modules = [libreboundmodule],
zip_safe=False)