Update setup.py for new module path, fix bash-completion install path

This commit is contained in:
fnux 2020-02-15 11:02:04 +01:00
parent 80a4faa9ae
commit 96aa0f986d

View file

@ -2,11 +2,8 @@
""" """
script to install ctt script to install ctt
""" """
import sys
from setuptools import setup from setuptools import setup
sys.path.insert(0, 'lib/')
import ctt import ctt
@ -16,11 +13,11 @@ setup(name='ctt',
author_email=ctt.WWW, author_email=ctt.WWW,
url=ctt.WWW, url=ctt.WWW,
license="GNU GPLv3", license="GNU GPLv3",
packages=['lib/ctt', packages=['ctt',
], ],
scripts=['scripts/ctt'], scripts=['scripts/ctt'],
data_files=[ data_files=[
('/etc/bash_completion.d/', ['extras/completion/ctt']), ('/usr/share/bash-completion/completions/', ['extras/completion/ctt']),
], ],
zip_safe=True, zip_safe=True,
classifiers=[ classifiers=[