-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
49 lines (47 loc) · 1.58 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
#!/usr/bin/env python
"""
txosc installation script
"""
from setuptools import setup
import os
import sys
import subprocess
import openshow
from twisted.python import procutils
setup(
name = "openshow",
version = openshow.__version__,
author = "Alexandre Quessy, Sofian Audry, Dame Diongue",
author_email = "[email protected]",
url = "http://github.com/mapmapteam/openshow",
description = "Open Show Control",
scripts = [
"scripts/openshow",
],
license="LGPL",
packages = ["openshow", "openshow/test"],
long_description = """OpenShow is a show control app to trigger theatrical cues at a specific time..""",
classifiers = [
"Framework :: Twisted",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Communications",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities"
]
)
if sys.argv[1] == "build":
commands = [
'help2man --no-info --include=man-openshow.txt --no-discard-stderr --name="OpenShow" ./scripts/openshow --output=openshow.1',
]
if os.path.exists("man-openshow.txt"):
try:
help2man = procutils.which("help2man")[0]
except IndexError:
print("Cannot build the man pages. help2man was not found.")
else:
for c in commands:
print("$ %s" % (c))
retcode = subprocess.call(c, shell=True)
print("The help2man command returned %s" % (retcode))