setup.py: Install share/... files to ${prefix}/share/... (issue #94)

This commit is contained in:
Sebastian Pipping 2017-03-15 14:43:28 +01:00
parent f80271afe8
commit a885c17bc3
1 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,12 @@ here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
long_description = '\n' + f.read()
def _data_files(path):
for root, dirs, files in os.walk(path):
if not files:
continue
yield (root, [os.path.join(root, f) for f in files])
setuptools.setup(
name="safeeyes",
version="1.1.9",
@ -31,6 +37,8 @@ setuptools.setup(
'config/lang/*.json',
'glade/*.glade',
'resource/*']},
data_files=list(_data_files(
os.path.join(os.path.dirname(__file__), 'share'))),
install_requires=requires,
entry_points={'console_scripts': ['safeeyes = safeeyes.safeeyes:main']},
keywords='linux utility health eye-strain safe-eyes',