-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
88 lines (76 loc) · 2.37 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env python2
"""NLS: Non-Linear Schrodinger equation solver.
NLS is scientific package that provides ability to solve effeffectively
non-linear schrodinger equation with reservoir. These equation describes
exciton-polariton condensation in microcavities. NLS is built on native
fortran code and is based on certain natural abstraction layer that wraps
native solver. These features are reason that makes calcualtions with NLS
fast.
"""
from numpy.distutils.core import setup
from numpy.distutils.core import Extension as FortranExtension
DOCLINES = (__doc__ or '').split('\n')
CLASSIFIERS = """\
Development Status :: 4 - Beta
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Fortran
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development
Topic :: Scientific/Engineering
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Operating System :: MacOS
"""
PLATFORMS = [
'Windows',
'Linux',
'Solaris',
'Mac OS-X',
'Unix'
]
MAJOR = 0
MINOR = 2
PATCH = 0
VERSION = '{0:d}.{1:d}.{2:d}'.format(MAJOR, MINOR, PATCH)
def setup_package():
setup(name='nls',
version=VERSION,
description = DOCLINES[0],
long_description = '\n'.join(DOCLINES[2:]),
url='https://github.com/daskol/nls',
download_url='https://github.com/daskol/nls/tarball/v' + VERSION,
author='Daniel Bershatsky',
author_email='[email protected]',
maintainer='Daniel Bershatsky',
maintainer_email='[email protected]',
license='MIT',
platforms=PLATFORMS,
classifiers=[line for line in CLASSIFIERS.split('\n') if line],
packages=[
'nls',
],
ext_modules=[
FortranExtension(
name='nls.native',
sources=[
'nls/nls.f90'
],
libraries=[
'blas',
],
),
],
scripts=[
'tools/check.py',
'tools/visualize.py',
],
)
if __name__ == '__main__':
setup_package()