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/>.
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
):
39 for path
, dirs
, files
in os
.walk('.'):
41 f
= os
.path
.join(path
, f
)
42 if f
.endswith('.pyc'):
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',
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',
65 'data/stopped.svg'])],
67 'clean' : clean_extra
}