-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
79 lines (69 loc) · 2.81 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
#!/usr/bin/python
from distutils.core import setup
VERSION = "0.1.0"
SHORT_DESC = "WebUI-based cloud creation tool"
LONG_DESC = """
Fogmachine allows users to deploy virtual machines across a wide array of host
machines, as specified in a configuration file. It uses Cobbler and Facebook's
Tornado framework to accomplish the heavy lifting, and it's got a swanky WebUI
for your viewing pleasure.
"""
if __name__ == "__main__":
# main Fogmachine directory
sharepath = "/usr/share/fogmachine"
logpath = "/var/log/fogmachine"
# webUI stuff
staticpath = sharepath + "/static"
# webUI subdirs
appletspath = staticpath + "/applets"
csspath = staticpath + "/css"
imagespath = staticpath + "/images"
jspath = staticpath + "/js"
templatespath = staticpath + "/templates"
# where daemonizer stuff lands
initpath = "/etc/init.d"
confpath = "/etc/fogmachine"
setup(
name = "fogmachine",
version = VERSION,
author = "Steve Salevan",
author_email = "[email protected]",
license = "GPL",
packages = [
"fogmachine"
],
scripts = [
"scripts/fogmachined"
],
data_files = [
# daemonizer script
(initpath, [ 'config/fogmachined' ]),
# main fogmachine files
(sharepath, [ 'main.py' ]),
(sharepath, [ 'README' ]),
# config files
(confpath, [ 'cfg_tmpl/fogmachine.conf' ]),
(confpath, [ 'cfg_tmpl/logging.conf' ]),
(confpath, [ 'cfg_tmpl/virthosts.conf' ]),
# webUI files
(staticpath, [ 'static/favicon.ico' ]),
(appletspath, [ 'static/applets/VncViewer.jar' ]),
(csspath, [ 'static/css/fogmachine.css' ]),
(imagespath, [ 'static/images/fogmachine.jpg' ]),
(jspath, [ 'static/js/vncwindow.js' ]),
(jspath, [ 'static/js/jquery-1.3.2.min.js' ]),
(templatespath, [ 'static/templates/admin.html' ]),
(templatespath, [ 'static/templates/base.html' ]),
(templatespath, [ 'static/templates/checkout.html' ]),
(templatespath, [ 'static/templates/group_reservations.html' ]),
(templatespath, [ 'static/templates/list.html' ]),
(templatespath, [ 'static/templates/login.html' ]),
(templatespath, [ 'static/templates/profile.html' ]),
(templatespath, [ 'static/templates/register.html' ]),
(templatespath, [ 'static/templates/reservations.html' ]),
# create the log directory, guhhhh
(logpath, [])
],
description=SHORT_DESC,
long_description=LONG_DESC
)