Another early import
[laditools.git] / setup.py
blobfbcfe116a28b23183ba4dd613c151c73f55a9433
1 #!/usr/bin/env python
3 # LADITools - Linux Audio Desktop Integration Tools
4 # setup.py - Setup script for the LADITools suite
5 # Copyright (C) 2007-2008, Marc-Olivier Barre <marco@marcochapeau.org>
6 # Copyright (C) 2007-2008, Nedko Arnaudov <nedko@arnaudov.name>
8 # This program is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 import os
22 import sys
23 import subprocess
24 from distutils.core import setup
25 from distutils.command.clean import clean
27 laditools_version = "1.0~rc2"
28 get_commit_script = "gitcommit.sh"
30 if not os.getenv("LADI_RELEASE") and \
31 os.path.isfile(get_commit_script):
32 commit = subprocess.check_output(["sh", get_commit_script]).strip()
33 laditools_version += "+" + commit
35 class clean_extra(clean):
36 def run(self):
37 clean.run(self)
39 for path, dirs, files in os.walk('.'):
40 for f in files:
41 f = os.path.join(path, f)
42 if f.endswith('.pyc'):
43 self.spawn(['rm', f])
45 setup(name='laditools',
46 version=laditools_version,
47 description='Linux Audio Desktop Integration Tools',
48 author='Marc-Olivier Barre and Nedko Arnaudov',
49 author_email='marco@marcochapeau.org',
50 url='http://www.marcochapeau.org/software/laditools',
51 packages=['laditools'],
52 scripts=['bin/laditray',
53 'bin/wmladi',
54 'bin/g15ladi',
55 'bin/ladilog',
56 'bin/ladiconf'],
57 data_files=[('share/doc/laditools', ['README', 'COPYING', 'INSTALL']),
58 ('share/pixmaps', ['data/ladilog.svg', 'data/laditray.svg', 'data/ladiconf.svg']),
59 ('share/applications', ['data/laditray.desktop']),
60 ('share/applications', ['data/ladiconf.desktop']),
61 ('share/laditools/data', ['data/laditools_logo.svg',
62 'data/ladilog_ui.ui',
63 'data/started.svg',
64 'data/starting.svg',
65 'data/stopped.svg'])],
66 cmdclass={
67 'clean' : clean_extra}