forked from thomasantony/bvp_solver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (57 loc) · 2.88 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
# Author: John Salvatier <[email protected]>, 2009.
import setuptools
DISTNAME = 'scikits.bvp_solver'
DESCRIPTION = "Python package for solving two-point boundary value problems"
LONG_DESCRIPTION ="""
bvp_solver is a Python package for solving two-point boundary value problems that wraps
a slightly modified BVP_SOLVER (see http://cs.stmarys.ca/~muir/BVP_SOLVER_Webpage.shtml).
Installation indstructions, a tutorial, examples and documentation can be found at
http://packages.python.org/scikits.bvp_solver/. If you have questions or suggestions
send an e-mail to the mailing list or me.
To join the mailing list send an e-mail to [email protected]
"""
MAINTAINER = 'John Salvatier'
MAINTAINER_EMAIL = "[email protected]"
URL = "http://packages.python.org/scikits.bvp_solver/"
LICENSE = "BSD"
VERSION = "1.1"
classifiers = ['Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Operating System :: OS Independent']
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration(DISTNAME, parent_package, top_path,
namespace_packages = ['scikits'],
version = VERSION,
maintainer = MAINTAINER,
maintainer_email = MAINTAINER_EMAIL,
description = DESCRIPTION,
license = LICENSE,
url = URL,
long_description = LONG_DESCRIPTION)
config.add_data_files('scikits/__init__.py')
config.add_extension('bvp_solverf',
sources=['scikits/bvp_solver/lib/lampak.f',
'scikits/bvp_solver/lib/BVP_LA.f',
'scikits/bvp_solver/lib/BVP_M.f90',
'scikits/bvp_solver/lib/BVP_INTERFACE.f90',
'scikits/bvp_solver/lib/bvp_interface.pyf'])
config.add_data_files('scikits/bvp_solver/examples/*.*')
config.add_data_files('scikits/bvp_solver/lib/BVP_SOLVER_License.txt')
config.add_data_files('scikits/bvp_solver/lib/BVP_LA_LicenseInfo.txt')
return config
if __name__ == "__main__":
from numpy.distutils.core import setup
setup(configuration=configuration,
packages = setuptools.find_packages(),
include_package_data = True,
platforms = ["any"],
requires=["numpy"],
tests_require = ['nose',],
test_suite='nose.collector',
zip_safe = True,
classifiers =classifiers)