-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathsetup.py
More file actions
146 lines (134 loc) · 4.34 KB
/
setup.py
File metadata and controls
146 lines (134 loc) · 4.34 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# -*- coding: utf-8 -*-
"""
setup script for cloudControl command line utilities
usage: sudo python setup.py install
"""
import os
import sys
from setuptools import setup, find_packages
from cctrl.version import __version__
execfile(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'cctrl', 'version.py'))
if sys.version_info < (2, 6):
required = ['simplejson']
else:
required = []
required.append('pycclib>=1.6.0')
required.append('argparse>=1.1')
required.append('paramiko>=1.15.2')
srcscripts = ['cctrl/cctrlapp', 'cctrl/cctrluser', 'cctrl/exoapp', 'cctrl/exouser', 'cctrl/dcapp', 'cctrl/dcuser', 'cctrl/cnhapp', 'cctrl/cnhuser']
if sys.platform == 'win32':
import py2exe
required.append('paramiko')
required.append('ecdsa')
extra_options = dict(
setup_requires=['py2exe'],
console=srcscripts,
zipfile=None,
data_files=[("", ["cctrl/cacerts.txt", ])],
options={
"py2exe": {
"compressed": True,
"optimize": 2,
"excludes": [
'_scproxy',
'hexdump',
'isapi',
'pythoncom',
'pywintypes',
'simplejson',
'socks',
'win32com',
'win32com.client',
'doctest',
'pickle',
'difflib',
'unittest'],
"includes": ["argparse", "pycclib", "paramiko", "Crypto", "ecdsa"],
"packages": find_packages()
}
}
)
else:
extra_options = dict(
scripts=srcscripts,
package_data={"cctrl": ["cacerts.txt"]},
packages=find_packages()
)
setup(
name="cctrl",
version=__version__,
description='cloudControl command line utilities',
author='cloudControl Team',
author_email='info@cloudcontrol.de',
url='https://www.cloudcontrol.com',
license='Apache 2.0',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Internet'
],
install_requires=required,
tests_require=['mock'],
test_suite='tests',
**extra_options
)
setup(
name="dotcloudng",
version=__version__,
description='dotcloud command line utilities',
author='dotcloud Team',
author_email='info@dotcloud.com',
url='https://www.dotcloud.com',
license='Apache 2.0',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Internet'
],
install_requires=required,
tests_require=['mock'],
test_suite='tests',
**extra_options
)
setup(
name="cnh",
version=__version__,
description='cloud&heat command line utilities',
author='cloudControl Team',
author_email='info@cloudcontrol.com',
url='https://www.cloudcontrol.com',
license='Apache 2.0',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Internet'
],
install_requires=required,
tests_require=['mock'],
test_suite='tests',
**extra_options
)