forked from bmcage/odes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.py
50 lines (41 loc) · 1.46 KB
/
common.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
descr = """
Odes is a scikit toolkit for scipy to add some extra ode solvers.
At present it provides dae solvers you can use, extending the capabilities
offered in scipy.integrade.ode.
LICENSE: the license of odes is the same as scipy, new BSD.
"""
DISTNAME = 'scikits.odes'
DESCRIPTION = 'A python module for ordinary differential equation and'+\
'differential algebraic equation solvers'
LONG_DESCRIPTION = descr
MAINTAINER = 'maintainer of odes is B. Malengier'
MAINTAINER_EMAIL = '[email protected]'
URL = 'https://github.com/bmcage/odes'
LICENSE = 'new BSD'
DOWNLOAD_URL = URL
MAJOR = 2
MINOR = 1
MICRO = 0
DEV = False
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Topic :: Scientific/Engineering']
def build_verstring():
return '%d.%d.%d' % (MAJOR, MINOR, MICRO)
def build_fverstring():
if DEV:
return build_verstring() + 'dev'
else:
return build_verstring()
def write_version(fname):
f = open(fname, "w")
f.writelines("version = '%s'\n" % build_verstring())
f.writelines("dev =%s\n" % DEV)
f.writelines("full_version = '%s'\n" % build_fverstring())
f.close()
VERSION = build_fverstring()
INSTALL_REQUIRE = 'scipy'