-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
55 lines (51 loc) · 1.96 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
#!/usr/bin/env python
"""
txosc installation script
"""
from setuptools import setup
import os
import sys
import subprocess
import txosc
from twisted.python import procutils
setup(
name = "txosc",
version = txosc.__version__,
author = "Arjan Scherpenisse and Alexandre Quessy",
author_email = "txosc@toonloop.com",
url = "http://bitbucket.org/arjan/txosc",
description = "Open Sound Control Protocol for Twisted",
scripts = [
"scripts/osc-receive",
"scripts/osc-send"
],
license="MIT/X",
packages = ["txosc", "txosc/test"],
long_description = """Open Sound Control (OSC) is an open, transport-independent, message-based protocol developed for communication among computers, sound synthesizers, and other multimedia devices.
This library implements OSC version 1.1 over both UDP and TCP for the Twisted Python framework.
""",
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-osc-send.txt --no-discard-stderr --name="sends an OSC message" ./scripts/osc-send --output=osc-send.1',
'help2man --no-info --include=man-osc-receive.txt --no-discard-stderr --name="receives OSC messages" ./scripts/osc-receive --output=osc-receive.1',
]
if os.path.exists("man-osc-send.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))