forked from oseledets/ttpy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
78 lines (66 loc) · 2.22 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
#!/usr/bin/env python
"""TTPY: Python implementation of the Tensor Train (TT) - Toolbox.
Python implementation of the Tensor Train (TT) - Toolbox. It contains several important packages for working with the
TT-format in Python. It is able to do TT-interpolation, solve linear systems, eigenproblems, solve dynamical problems.
Several computational routines are done in Fortran (which can be used separatedly), and are wrapped with the f2py tool.
"""
from numpy.distutils.core import setup
from numpy.distutils.misc_util import Configuration
DOCLINES = (__doc__ or '').split('\n')
PLATFORMS = [
'Windows',
'Linux',
'Solaris',
'Mac OS-X',
'Unix',
]
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
"""
MAJOR = 1
MINOR = 1
MICRO = 0
ISRELEASED = True
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
def configuration(parent_package='', top_path=None):
config = Configuration(None, parent_package, top_path)
config.set_options(
ignore_setup_xxx_py=True,
assume_default_configuration=True,
delegate_options_to_subpackages=True,
quiet=True,
)
config.add_subpackage('tt')
return config
def setup_package():
metadata = dict(
name='ttpy',
version=VERSION,
description = DOCLINES[0],
long_description = '\n'.join(DOCLINES[2:]),
url='https://github.com/oseledets/ttpy',
download_url='https://github.com/oseledets/ttpy/tarball/v' + VERSION,
author='Ivan Oseledets',
maintainer='Ivan Oseledets',
platforms=PLATFORMS,
classifiers=[line for line in CLASSIFIERS.split('\n') if line],
configuration=configuration,
)
setup(**metadata)
if __name__ == '__main__':
setup_package()