-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
63 lines (59 loc) · 1.95 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
#!/usr/bin/env python
from distutils.core import setup
import os
from subprocess import check_output
driver_path = None
try:
cmd_output = check_output(
["/usr/bin/locate", "neutron_lbaas/drivers/brocade/driver_v2.py"]
)
if len(cmd_output) > 0:
path_guess = os.path.dirname(cmd_output.split("\n")[0])
confirm = raw_input(
"Path located: %s\n"
"Is this the correct installation path for your Brocade "
"Neutron LBaaS plugin driver? [y/n]" % path_guess
)
if confirm.strip().lower() == "y":
driver_path = path_guess
except:
pass
if driver_path is None:
driver_path = raw_input(
"Please enter the full path of the directory where the Brocade "
"Neutron LBaaS plugin driver should be installed: "
)
setup(
name="brocade_neutron_lbaas",
author="Matthew Geldert",
author_email="mgeldert@brocade.com",
description="Brocade vADC OpenStack Neutron LBaaS Device Driver",
long_description=open("README.md").read(),
version="mitaka",
url="http://www.brocade.com",
packages=[
"brocade_neutron_lbaas",
"brocade_neutron_lbaas_tenant_customizations_db",
"brocade_neutron_lbaas.vtm"
],
scripts=[
"scripts/brocade_lbaas_config_generator",
"scripts/brocade_lbaas_tenant_customization"
],
data_files=[
("/etc/neutron/services/loadbalancer", ["conf/brocade.conf"]),
(driver_path, ["driver_v2.py"])
],
license="Apache Software License",
platforms=["Linux"],
classifiers=[
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Environment :: OpenStack",
"License :: OSI Approved :: Apache Software License"
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7"
]
)