-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
75 lines (64 loc) · 2.31 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
#!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages
from setuptools.extension import Extension
from setuptools import dist
dist.Distribution().fetch_build_eggs(["Cython>=0.29", "numpy>=1.18"])
import numpy as np
from Cython.Build import cythonize
with open("README.md") as readme_file:
readme = readme_file.read()
requirements = ["numpy>=1.18", "Cython>=0.29", "matplotlib>=3.3", "antimony>=2.12"]
setup_requirements = ["Cython>=0.29", "numpy>=1.18"]
test_requirements = ["pytest", "pytest-runner", "pytest-benchmark"]
ext_modules = [
Extension(
"cayenne.algorithms.direct",
["cayenne/algorithms/direct.pyx"],
include_dirs=[np.get_include()],
),
Extension(
"cayenne.algorithms.tau_leaping",
["cayenne/algorithms/tau_leaping.pyx"],
include_dirs=[np.get_include()],
),
Extension(
"cayenne.algorithms.tau_adaptive",
["cayenne/algorithms/tau_adaptive.pyx"],
include_dirs=[np.get_include()],
),
Extension("cayenne.utils", ["cayenne/utils.pyx"], include_dirs=[np.get_include()]),
]
setup(
author="Dileep Kishore, Srikiran Chandrasekaran",
author_email="[email protected]",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
description="Python package for stochastic simulations",
install_requires=requirements + setup_requirements,
license="Apache Software License 2.0",
long_description=readme + "\n\n",
long_description_content_type="text/markdown",
include_package_data=True,
keywords="cayenne stochastic gillepsie simulation",
name="cayenne",
packages=find_packages(exclude=["tests"]),
setup_requires=setup_requirements,
test_suite="tests",
tests_require=test_requirements,
url="https://github.com/Heuro-labs/cayenne",
version="1.0.3",
zip_safe=False,
ext_modules=cythonize(
ext_modules,
annotate=True,
compiler_directives={"binding": True, "linetrace": False, "profile": False},
),
)