chickenhouse/setup.py
Thomas Klaehn ef2582dfa7 chickenhouse: add climate control
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
2018-09-01 08:34:36 +02:00

25 lines
849 B
Python

#!/usr/bin/env python
from distutils.core import setup
import shutil
import os
import stat
import sys
NAME = 'chickenhouse'
VERSION = '1.1.0'
AUTHOR = 'tkl'
EMAIL = 'tkl@blackfinn.de'
URL = 'https://git.blackfinn.de/python/chickenhouse'
PACKAGES = ['chickenhouse', 'climate_control', 'gate_guard']
SCRIPTS = ['chickenhouse.service']
if sys.argv[1] == 'install':
shutil.copyfile('chickenhouse.service', '/lib/systemd/system/chickenhouse.service')
os.chmod('/lib/systemd/system/chickenhouse.service',
stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH)
setup(name=NAME, version=VERSION, author=AUTHOR, author_email=EMAIL,
url=URL, packages=PACKAGES)
elif sys.argv[1] == 'sdist':
setup(name=NAME, version=VERSION, author=AUTHOR, author_email=EMAIL,
url=URL, packages=PACKAGES, scripts=SCRIPTS)