-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (51 loc) · 1.83 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
#!/usr/bin/env python
import os
import sys
from distutils.core import setup, Extension
from pkg_resources import resource_filename
from subprocess import call as subpcall
from setuptools import find_packages
if sys.version < "2.6.0" or sys.version > "2.8.0":
print "Please use a Python with higher version than 2.6.0"
sys.stderr.write("CRITICAL: Python version must be 2.6 or 2.7!\n")
sys.exit(1)
exit(1)
def run_cmd(command):
subpcall (command, shell = True)
def compilemis():
curdir = os.getcwd()
os.chdir('BETA/misp')
run_cmd('make')
run_cmd('chmod 755 *')
os.chdir(curdir)
def main():
#compilemis()
if not float(sys.version[:3])>=2.5:
sys.stderr.write("CRITICAL: Python version must be greater than or equal to 2.5! python 2.6.1 or newer is recommended!\n")
sys.exit(1)
setup(name="BETA-Package",
version="1.0.7",
description="BETA -- Binding and Expression Targets Analysis ",
author='Su Wang',
author_email='[email protected]',
package_dir={'BETA' : 'BETA'},
install_requires=['argparse','numpy'],
packages=['BETA'],
scripts=['bin/BETA','BETA/misp/misp'],
package_data={'BETA':['references/*','templates/*']},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Artistic License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Database',
],
)
if __name__ == '__main__':
compilemis()
main()