summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup.py25
1 files changed, 17 insertions, 8 deletions
diff --git a/setup.py b/setup.py
index 792e8e6..e255fd9 100644
--- a/setup.py
+++ b/setup.py
@@ -12,9 +12,9 @@
# Written by René 'Necoro' Neumann <necoro@necoro.net>
import os
+import sys
+
from distutils.core import setup
-from distutils.extension import Extension
-from Cython.Distutils import build_ext
from portato.constants import VERSION, ICON_DIR, PLUGIN_DIR, TEMPLATE_DIR, APP
@@ -27,7 +27,6 @@ def plugin_list (*args):
packages = [
"portato",
"portato.db",
- "portato.eix",
"portato.gui", "portato.gui.windows",
"portato.plugins",
"portato.backend", "portato.backend.portage"
@@ -38,9 +37,19 @@ data_files = [
(ICON_DIR, ["icons/portato-icon.png"]),
(PLUGIN_DIR, plugin_list("gpytage", "notify", "etc_proposals", "reload_portage", "package_details"))]
-ext_modules = [
- Extension("portato.eix.parser", ["portato/eix/parser.pyx"])
- ]
+# extension stuff
+ext_modules = []
+cmdclass={'build_manpage': build_manpage}
+
+if "--disable-eix" in sys.argv:
+ sys.argv.remove("--disable-eix")
+else:
+ from Cython.Distutils import build_ext
+ from distutils.extension import Extension
+
+ ext_modules.append(Extension("portato.eix.parser", ["portato/eix/parser.pyx"]))
+ cmdclass['build_ext'] = build_ext
+ packages.append("portato.eix")
# do the distutils setup
setup(name=APP,
@@ -54,6 +63,6 @@ setup(name=APP,
author_email = "necoro@necoro.net",
packages = packages,
data_files = data_files,
- cmdclass={'build_manpage': build_manpage, 'build_ext' : build_ext},
- ext_modules = ext_modules
+ ext_modules = ext_modules,
+ cmdclass = cmdclass
)
ef644a09863e623&follow=1'>Removed the gtk- strings from translationsRené 'Necoro' Neumann7-3639/+3479 2009-08-31Removed the 'translatable' attribute from 'gtk-*' stringsRené 'Necoro' Neumann5-11/+11 2009-08-31Removed TODO. Renamed ChangeLog to TODORené 'Necoro' Neumann2-40/+0 2009-08-27Only import stuff if necessaryRené 'Necoro' Neumann1-8/+8 2009-08-25Release the threadQueue-Lock in syncv0.13René 'Necoro' Neumann1-0/+1 2009-08-25Updated portugese translationAlberto Federman Neto1-650/+687 2009-08-15Update spanish translationDaniel Halens1-245/+258 2009-08-15Use boolean flags instead of obscure C flags for ipc.MessageQueueRené 'Necoro' Neumann3-13/+15 2009-08-15TypoRené 'Necoro' Neumann1-1/+1 2009-08-15Enhanced the extensions.shRené 'Necoro' Neumann1-3/+8 2009-08-15Move eix-format to correct locationRené 'Necoro' Neumann1-0/+0