From d59f5f405188d93f5c00e21840930d4f1eaf8dd1 Mon Sep 17 00:00:00 2001 From: BlackNoxis Date: Wed, 31 Dec 2014 22:37:52 +0200 Subject: Added media gfx,libs,sound --- media-sound/pithos/files/setup.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 media-sound/pithos/files/setup.py (limited to 'media-sound/pithos/files/setup.py') diff --git a/media-sound/pithos/files/setup.py b/media-sound/pithos/files/setup.py new file mode 100644 index 00000000..0d5776ae --- /dev/null +++ b/media-sound/pithos/files/setup.py @@ -0,0 +1,37 @@ +# replacement for setup.py for pithos as the included one is.. less than ideal + +from os import walk +from glob import glob +from os.path import join +from setuptools import setup, find_packages + +DATA_DIR = '/usr/share/pithos/' +ICON_DIR = '/usr/share/icons/hicolor/' +APP_DIR = '/usr/share/applications' + +datadir = 'data' +datadirs = ['ui', 'media'] +icondir = 'data/icons' +bindir = 'bin' + +datafiles = [[(join(DATA_DIR, root.partition(datadir)[2].lstrip('/')), [join(root, f) for f in files]) + for root, dirs, files in walk(join(datadir, data))][0] for data in datadirs] + +datafiles += ([(join(ICON_DIR, root.partition(icondir)[2].lstrip('/')), [join(root, f) for f in files]) + for root, dirs, files in walk(icondir)]) + +datafiles += [(APP_DIR, glob('*.desktop'))] + +setup( + name='pithos', + version='0.3', + ext_modules=[], + license='GPL-3', + author='Kevin Mehall', + author_email='km@kevinmehall.net', + description='Pandora.com client for the GNOME desktop', + packages=find_packages(), + url='https://launchpad.net/pithos', + data_files=datafiles, + scripts=glob('bin/*'), +) -- cgit v1.2.3