From 3a1d0db1f30133bae568341428d427cf5a5d0495 Mon Sep 17 00:00:00 2001 From: necoro <> Date: Wed, 24 Jan 2007 22:15:27 +0000 Subject: - Added icons - Added support for killing the process - Reorganised setup and starting-script --- setup.py | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index b4d12f8..d48d396 100644 --- a/setup.py +++ b/setup.py @@ -2,13 +2,24 @@ # -*- coding: utf-8 -*- from distutils.core import setup, Extension -from portato.constants import VERSION, DATA_DIR +from portato.constants import VERSION, DATA_DIR, FRONTENDS + +packages = ["portato", "portato.gui", "portato.backend"] +ext_modules = [] +data_files = [] +cmdclass = {} + +if "gtk" in FRONTENDS: + packages.append("portato.gui.gtk") + data_files.append((DATA_DIR, ["portato/gui/gtk/glade/portato.glade"])) setup(name="Portato", - version=VERSION, - author="René 'Necoro' Neumann", - license="GPLv2", - author_email="necoro@necoro.net", - packages=["portato", "portato.gui", "portato.backend", "portato.gui.gtk"], - data_files=[(DATA_DIR, ["portato/gui/gtk/glade/portato.glade"])] + version = VERSION, + author = "René 'Necoro' Neumann", + license = "GPLv2", + author_email = "necoro@necoro.net", + packages = packages, + data_files = data_files, + ext_modules = ext_modules, + cmdclass = cmdclass ) -- cgit v1.2.3