Use playbin2 instead of the old playbin
[panucci.git] / setup.py
blob46d73419f83d90c8c54b31b52f2c3a9eab23d111
1 #!/usr/bin/env python
3 # This file is part of Panucci.
4 # Copyright (c) 2008-2009 The Panucci Audiobook and Podcast Player Project
6 # Panucci is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # Panucci is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with Panucci. If not, see <http://www.gnu.org/licenses/>.
20 from distutils.core import setup
21 from glob import glob
22 import os
23 import sys
25 running_on_tablet = os.path.exists('/etc/osso_software_version')
27 applications_dir = 'share/applications'
28 if running_on_tablet:
29 applications_dir += '/hildon'
31 data_files = [
32 ('share/panucci', glob('icons/*.png')),
33 (applications_dir, ['data/panucci.desktop']),
34 ('share/icons/hicolor/scalable/apps', ['data/panucci.png']),
37 # search for translations and repare to install
38 translation_files = []
39 for mofile in glob('data/locale/*/LC_MESSAGES/panucci.mo'):
40 modir = os.path.dirname(mofile).replace('data', 'share')
41 translation_files.append((modir, [mofile]))
43 if not len(translation_files) and not 'clean' in sys.argv:
44 print >>sys.stderr, """
45 Warning: No translation files. (Did you forget to run "make gen_gettext"?)
46 """
48 setup(name='Panucci',
49 version='0.4',
50 description='A Resuming Media Player',
51 author='Thomas Perl',
52 author_email='thp@perli.net',
53 url='http://panucci.garage.maemo.org/',
54 packages=['panucci'],
55 package_dir={ '':'src' },
56 scripts=['bin/panucci'],
57 data_files=data_files + translation_files,