-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·34 lines (31 loc) · 1.1 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
#!/usr/bin/env python
from distutils.core import setup
def find_version(path):
import re
# path shall be a plain ascii text file.
s = open(path, 'rt').read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
s, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Version not found")
setup(name="abopt", version=find_version("abopt/version.py"),
author="Grigor Aslanyan, Yu Feng, et al",
maintainter="Yu Feng",
maintainter_email="rainwoodman@gmail.com",
description="Optimization of abstract data types in Python",
zip_safe=True, # this should be pure python
packages=["abopt",
"abopt.linesearch",
"abopt.algs",
"abopt.algs.tests",
"abopt.tests",
"abopt.testing",
"abopt.legacy",
"abopt.legacy.tests",
],
license='GPLv3',
install_requires=['numpy',
'scipy', # currently needed for 1d linesearch
]
)