-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
35 lines (31 loc) · 939 Bytes
/
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
import os
import re
from setuptools import setup, find_packages
def get_version():
VERSIONFILE = os.path.join("sunode", "__init__.py")
lines = open(VERSIONFILE).readlines()
version_regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
for line in lines:
mo = re.search(version_regex, line, re.M)
if mo:
return mo.group(1)
raise RuntimeError(f"Unable to find version in {VERSIONFILE}.")
setup(
name='sunode',
version=get_version(),
author='Adrian Seyboldt',
author_email='[email protected]',
description='Python wrapper of sundials for solving ordinary differential equations',
url='https://github.com/pymc-devs/sunode',
setup_requires=["cffi>=1.0.0"],
cffi_modules=[
"sunode/build_cvodes.py:ffibuilder",
],
packages=find_packages(),
install_requires=[
"cffi>=1.0.0",
"sympy",
"numpy",
"numba",
],
)