-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
62 lines (55 loc) · 1.86 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
import os
import shutil
import subprocess
import sys
from setuptools import setup
from setuptools.command.install import install
## manpage install code taken from https://github.com/novel/lc-tools
def abspath(path):
"""A method to determine absolute path
for a relative path inside project's directory."""
return os.path.abspath(
os.path.join(
os.path.dirname(__file__), path))
class fifo_install(install):
def initialize_options(self):
install.initialize_options(self)
def run(self):
install.run(self)
man_dir = abspath("./doc/")
output = subprocess.Popen([os.path.join(man_dir, "install.sh")],
stdout=subprocess.PIPE,
cwd=man_dir,
env=dict({"PREFIX": self.prefix}, **dict(os.environ))).communicate()[0]
print output
setup(
name='PyFi',
version='0.2.9',
author='Heinz N. Gies',
author_email='[email protected]',
packages=['fifo', 'fifo.api'],
scripts=['bin/fifo'],
url='https://project-fifo.net',
license='CDDL',
description='Project FiFo API implementation and console client.',
long_description=open('README.md').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved',
'Operating System :: OS Independent',
'Operating System :: Unix',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Internet',
'Topic :: System :: Systems Administration',
'Topic :: Utilities',
],
install_requires=[
'websocket-client',
],
cmdclass={"install": fifo_install}
)