-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathsetup.py
70 lines (61 loc) · 2.06 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
#!/usr/bin/env python
"setup for PyDDE"
import sys
from warnings import warn
from setuptools import setup, find_packages, Extension
try:
from numpy import get_include
INCLUDE_DIRS = [get_include()]
except ImportError:
warn("numpy not found!")
INCLUDE_DIRS = []
REQUIREMENTS = [
'numpy',
]
# mac osx 10.9 clang fix
if sys.platform == 'darwin':
EXTRA_COMPILE_ARGS = [
'-Wno-error=unused-command-line-argument-hard-error-in-future']
else:
EXTRA_COMPILE_ARGS = []
EXT_MODULES = [
Extension(
"PyDDE.ddesolve",
sources=['PyDDE/src/ddeq.c', 'PyDDE/src/ddesolve95.c',
'PyDDE/src/wrapper.c'],
extra_compile_args=EXTRA_COMPILE_ARGS),
]
setup(
name='PyDDE',
version='0.2.2',
description="PyDDE is a solver for delay differential equations \
written in Python and C.",
long_description="""
PyDDE is an open source numerical solver for systems of delay differential
equations (DDEs), implemented as a Python package and written in both
Python and C. It is built around the numerical routines of the R package
ddesolve, which is itself based on Simon Wood's Solv95, a DDE solver for
Microsoft Windows systems written in C.
""",
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries :: Python Modules',
],
platforms="Any",
license="GPL",
keywords="delay differential equation solver dde switches solv95 ddesolve",
maintainer="Henning Dickten",
maintainer_email="hdickten@uni-bonn.de",
url="https://www.github.com/hensing/PyDDE",
requires=REQUIREMENTS,
packages=find_packages(),
ext_modules=EXT_MODULES,
include_package_data=True,
include_dirs=INCLUDE_DIRS,
package_data={'PyDDE': ['doc/*.pdf', 'test/*.py']},
)