-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·90 lines (75 loc) · 2.74 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
89
90
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
import subprocess
#try:
# import saga
#except:
# print "#."
#if sys.version_info < (2, 6):
# sys.stderr.write("BigJob requires Python 2.6 and above. Installation unsuccessful!")
# sys.exit(1)
VERSION_FILE="VERSION"
def update_version():
if not os.path.isdir(".git"):
print("This does not appear to be a Git repository.")
return
try:
p = subprocess.Popen(["git", "describe",
"--tags", "--always"],
stdout=subprocess.PIPE)
except EnvironmentError:
print("Unable to run git, not modifying VERSION")
return
stdout = p.communicate()[0]
if p.returncode != 0:
print("Unable to run git, not modifying VERSION")
return
ver = stdout.strip()
fn = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'VERSION')
f = open(fn, "w")
f.write(ver)
f.close()
print("Pilot-Streaming VERSION: '%s'" % ver)
def get_version():
try:
fn = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'VERSION')
f = open(fn)
version = f.read().strip()
f.close()
except EnvironmentError:
return "-1"
return version
def create_manifest():
pass
#update_version()
setup(name='Pilot-Streaming',
version=get_version(),
description='Framework for Management of Streaming Frameworks on HPC clusters (Torque/PBS/SLURM)',
author='Andre Luckow',
author_email='[email protected]',
url='https://github.com/radical-cybertools/pilot-streaming',
classifiers = ['Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'Environment :: Console',
'Topic :: Utilities',
],
platforms = ('Unix', 'Linux', 'Mac OS'),
license = "License :: OSI Approved :: Apache Software License",
include_package_data = True,
package_dir = {'':'.'},
packages=find_packages(),
# ['hadoop1', 'hadoop2', 'hadoop2.configs.default',
# 'hadoop2.configs.default',
# 'hadoop2.configs.stampede',
# 'hadoop2.configs.gordon',
# "spark", "commandline"],
# data files for easy_install
package_data= {'': ['*.xml', '*.yaml', '*.properties']},
install_requires=['uuid', 'pykafka', 'argparse', 'python-hostlist', 'dask', 'distributed', 'pyspark', 'paramiko', 'boto3'],
entry_points = {
'console_scripts': ['psm=commandline.main:main',
'pilot-streaming=commandline.main:main']
}
)