-
Notifications
You must be signed in to change notification settings - Fork 57
/
setup.py
71 lines (63 loc) · 2.27 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
import numpy
import os, sys, re
from setuptools import setup, Extension
from Cython.Build import cythonize
import Cython.Compiler.Options
Cython.Compiler.Options.annotate=True
if 'darwin'==(sys.platform).lower():
extension1 = Extension('pyross/*', ['pyross/*.pyx'],
include_dirs=[numpy.get_include()],
extra_compile_args=['-mmacosx-version-min=10.9'],
extra_link_args=['-mmacosx-version-min=10.9'],
)
else:
extension1 = Extension('pyross/*', ['pyross/*.pyx'],
include_dirs=[numpy.get_include()],
)
with open("README.md", "r") as fh:
long_description = fh.read()
cwd = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(cwd, 'pyross', '__init__.py')) as fp:
for line in fp:
m = re.search(r'^\s*__version__\s*=\s*([\'"])([^\'"]+)\1\s*$', line)
if m:
version = m.group(2)
break
else:
raise RuntimeError('Unable to find own __version__ string')
setup(
name='pyross',
version=version,
url='https://github.com/rajeshrinet/pyross',
project_urls={
"Documentation": "https://pyross.readthedocs.io",
"Source": "https://github.com/rajeshrinet/pyross",
},
author='The PyRoss team',
author_email = '[email protected]',
license='MIT',
description='PyRoss is a numerical library for inference, forecasts,\
and optimal control of epidemiological models in Python',
long_description=long_description,
long_description_content_type='text/markdown',
platforms='tested on Linux, macOS, and windows',
ext_modules=cythonize([extension1],
compiler_directives={'language_level': 3},
),
libraries=[],
install_requires=['cython','numpy','scipy','matplotlib',
'cma','sympy','nlopt','dill'],
packages=['pyross'],
package_data={'pyross': ['*.pxd']},
include_package_data=True,
setup_requires=['wheel'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
],
)