-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
57 lines (53 loc) · 2.13 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
from __future__ import absolute_import, with_statement, print_function, division
from setuptools import setup, Extension, find_packages
import os
import numpy as np
def readme(short=False):
with open("README.rst") as f:
if short:
return f.readlines()[1].strip()
else:
return f.read()
pyoscode_module = Extension(
name="_pyoscode",
sources=["pyoscode/_pyoscode.cpp"],
include_dirs=['include','pyoscode',np.get_include(),'deps/eigen'],
depends=["pyoscode/_python.hpp", "pyoscode/_pyoscode.hpp"],
extra_compile_args=['-std=c++17','-Wall']
)
setup(
name="pyoscode",
version="1.2.0",
description=readme(short=True),
long_description=readme(),
url="https://github.com/fruzsinaagocs/oscode",
project_urls={"Documentation":"https://oscode.readthedocs.io"},
author="Fruzsina Agocs",
author_email="[email protected]",
packages=find_packages(),
install_requires=["numpy"],
extras_require={"examples:":["matplotlib", "scipy", "jupyter"],
"docs":["sphinx","sphinx-rtd-theme","numpydoc"], "testing":["pytest"]},
setup_requires=["pytest-runner","numpy"],
tests_require=["pytest", "numpy", "scipy"],
include_package_data=True,
license="oscode",
ext_modules=[pyoscode_module],
headers=["pyoscode/_python.hpp", "pyoscode/_pyoscode.hpp"],
include_dirs=[np.get_include()],
keywords="PPS, cosmic inflation, cosmology, oscillatory, ODE",
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Scientific/Engineering :: Mathematics'
],
)