-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·76 lines (63 loc) · 2.28 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
#!/usr/bin/env python
import os
import subprocess
from setuptools import setup, find_packages
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(str(ver))
f.close()
print("Pilot-Quantum 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-Quantum',
version=get_version(),
description='Framework for Management of Quantum-HPC applications on HPC clusters (Torque/PBS/SLURM)',
author='Andre Luckow, Pradeep Mantha',
author_email='aluckow@clemson.edu',
url='https://github.com/radical-cybertools/pilot-quantum',
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(),
# data files for easy_install
package_data={'': ['*.xml', '*.yaml', '*.properties']},
install_requires=['uuid', 'argparse', 'python-hostlist', 'dask', 'distributed', 'pyspark', 'asyncssh',
"pennylane"],
entry_points={
'console_scripts': ['pq=commandline.main:main',
'pilot-quantum=commandline.main:main']
}
)