-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (34 loc) · 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
34
35
36
37
38
import setuptools
def choose_network_client(requires):
import pkg_resources
for req in requires:
try:
pkg_resources.require(req)
return [req]
except pkg_resources.DistributionNotFound:
pass
pass
print "To use this app one of the following packages have to be installed - %s" % requires
import os
os._exit(os.EX_OK)
pass
setuptools.setup(
name="python-neutronclient_ext",
version="0.0.1",
author="anabelengp",
author_email="[email protected]",
url="https://github.com/anabelengp/python-neutronclient_ext.git",
description="Neutron client extension example",
license="",
packages=["neutronclient_ext"],
install_requires=choose_network_client(["python-neutronclient", "python-quantumclient"]),
classifiers=[
"Programming Language :: Python",
],
zip_safe=False,
entry_points={
'console_scripts': [
'neutron = neutronclient_ext.shell:main',
]
}
)