forked from avimanyu786/CellModeller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (31 loc) · 1.36 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
#!/usr/bin/env python
import os
#from distutils.core import setup
from setuptools import setup
import subprocess
# Fetch version from git tags, and write to version.py.
# Also, when git is not available (PyPi package), use stored version.py.
version_py = os.path.join(os.path.dirname(__file__), 'CellModeller/version.py')
try:
version_git = subprocess.check_output(["git", "describe"]).rstrip()
except:
with open(version_py, 'r') as fh:
version_git = open(version_py).read().strip().split('=')[-1].replace('"','')
version_msg = "# Do not edit this file, pipeline versioning is governed by git tags"
with open(version_py, 'w') as fh:
fh.write(version_msg + os.linesep + "__version__='" + version_git + "'")
setup(name='CellModeller',
install_requires=['numpy', 'scipy', 'pyopengl', 'pyopencl==2014.1'],
setup_requires=['numpy', 'scipy', 'pyopengl', 'pyopencl==2014.1'],
#setup_requires=['numpy', 'pyopengl', 'mako', 'pyopencl'],
packages=['CellModeller',
'CellModeller.Biophysics',
'CellModeller.Biophysics.BacterialModels',
'CellModeller.Biophysics.GeneralModels',
'CellModeller.Integration',
'CellModeller.Regulation',
'CellModeller.Signalling',
'CellModeller.GUI'],
package_data={'':['*.cl','*.ui']},
version=version_git
)