Fix GtkNotebook issues.
[laditools.git] / setup.py
blobad48512aad9163e4d82ad519010f0633a53161f6
1 #!/usr/bin/python
3 # LADITools - Linux Audio Desktop Integration Tools
4 # setup.py - Setup script for the LADITools suite
5 # Copyright (C) 2011-2012 Alessio Treglia <quadrispro@ubuntu.com>
6 # Copyright (C) 2007-2008, Marc-Olivier Barre <marco@marcochapeau.org>
7 # Copyright (C) 2007-2008, Nedko Arnaudov <nedko@arnaudov.name>
9 # This program is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22 import os
23 import sys
24 import subprocess
25 from distutils.core import setup
26 from distutils.command.clean import clean
27 from DistUtilsExtra.command import *
29 laditools_version = "1.0~rc3"
30 get_commit_script = "gitcommit.sh"
31 pkg_short_desc = "Linux Audio Desktop Integration Tools"
32 pkg_long_desc = """LADITools is a set of tools aiming to achieve the goals of the LADI project to improve desktop integration and user workflow of Linux audio system based on JACK and ladish. Those tools take advantage of the D-Bus interfaces recently added to JACK and ladish to ease the configuration and use of those two great softwares.
34 The following tools are included:
35 * laditray - a system tray icon that allows users to start, stop and
36 monitor JACK, as well as start some JACK related applications
37 * ladilog - a JACK, ladish and a2jmidid log viewer
38 * ladiconf - a GUI to setup JACK's configuration
39 * g15ladi - a JACK monitor for g15 keyboards"""
40 pkg_data_files = [('share/pixmaps', ['data/ladilog.svg',
41 'data/laditray.svg',
42 'data/ladiconf.svg']),
43 ('share/applications', ['data/laditray.desktop']),
44 ('share/applications', ['data/ladiconf.desktop']),
45 ('share/laditools/data', ['data/laditools_logo.svg',
46 'data/ladilog_ui.ui',
47 'data/started.svg',
48 'data/starting.svg',
49 'data/stopped.svg'])]
50 pkg_scripts = ['bin/laditray',
51 'bin/g15ladi',
52 'bin/wmladi',
53 'bin/ladilog',
54 'bin/ladiconf']
56 if not os.getenv("LADI_RELEASE") and \
57 os.path.isfile(get_commit_script):
58 commit = subprocess.check_output(["sh", get_commit_script]).strip()
59 laditools_version += "~" + commit
61 class clean_extra(clean_i18n.clean_i18n):
62 def run(self):
63 clean_i18n.clean_i18n.run(self)
65 for path, dirs, files in os.walk('.'):
66 for f in files:
67 f = os.path.join(path, f)
68 if f.endswith('.pyc'):
69 self.spawn(['rm', f])
71 setup(name='laditools',
72 version=laditools_version,
73 author='Marc-Olivier Barre, Nedko Arnaudov and Alessio Treglia',
74 author_email='linux-audio-dev@lists.linuxaudio.org',
75 license='GPL-3',
76 url='https://launchpad.net/laditools',
77 download_url='https://launchpad.net/laditools/+download',
78 description=pkg_short_desc,
79 long_description=pkg_long_desc,
80 packages=['laditools'],
81 scripts=pkg_scripts,
82 data_files=pkg_data_files,
83 cmdclass={
84 'build' : build_extra.build_extra,
85 'build_i18n' : build_i18n.build_i18n,
86 'clean' : clean_extra}