bicycle-statistics/setup.py

30 lines
950 B
Python
Raw Permalink Normal View History

#!/usr/bin/env python
import sys
import os
import shutil
import stat
2019-08-14 10:48:37 +00:00
from setuptools import setup
NAME = 'bicycle-statistics'
VERSION = '0.2.0'
AUTHOR = 'Thomas Klaehn'
EMAIL = 'tkl@blackfinn.de'
PACKAGES = ['bicycle_statistics', 'gpx_parser', 'gpx2html']
SCRIPTS = ['example-gpx-parser', 'bicycle-stat']
# REQUIRES = ['geopy', 'gpxpy', 'matplotlib', 'numpy', 'pandas']
2019-08-14 10:48:37 +00:00
SERVICEDIR = "/lib/systemd/system"
DAEMON_START_SCRIPT = os.path.join(SERVICEDIR, "bicycle-stat.service")
if sys.argv[1] == 'install':
2019-08-14 10:48:37 +00:00
os.makedirs(SERVICEDIR)
shutil.copyfile("bicycle-stat.service", DAEMON_START_SCRIPT)
os.chmod(DAEMON_START_SCRIPT, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH)
# setup(name=NAME, version=VERSION, author=AUTHOR, author_email=EMAIL,
# packages=PACKAGES, scripts=SCRIPTS, install_requires=REQUIRES)
2019-08-14 10:48:37 +00:00
setup(name=NAME, version=VERSION, author=AUTHOR, author_email=EMAIL,
packages=PACKAGES, scripts=SCRIPTS)