summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--setup.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index f5f77fb..7276b92 100644
--- a/setup.py
+++ b/setup.py
@@ -13,6 +13,10 @@
import os
from distutils.core import setup
+
+from Cython.Distutils.extension import Extension
+from Cython.Distutils import build_ext
+
from portato.constants import VERSION, ICON_DIR, PLUGIN_DIR, TEMPLATE_DIR, APP
from build_manpage import build_manpage
@@ -21,12 +25,14 @@ def plugin_list (*args):
"""Creates a list of correct plugin pathes out of the arguments."""
return [("plugins/%s.py" % x) for x in args]
-packages = ["portato", "portato.db", "portato.gui", "portato.gui.windows", "portato.plugins", "portato.backend", "portato.backend.portage"]
+packages = ["portato", "portato.db", "portato.eix", "portato.gui", "portato.gui.windows", "portato.plugins", "portato.backend", "portato.backend.portage"]
data_files = [
(TEMPLATE_DIR, [os.path.join("portato/gui/templates",x) for x in os.listdir("portato/gui/templates") if x.endswith(".ui")]),
(ICON_DIR, ["icons/portato-icon.png"]),
(PLUGIN_DIR, plugin_list("gpytage", "notify", "etc_proposals", "reload_portage", "package_details"))]
+libeix = Extension("portato.eix.libeix", ["portato/eix/libeix.pyx"])
+
# do the distutils setup
setup(name=APP,
version = VERSION,
@@ -38,6 +44,7 @@ setup(name=APP,
author = "René 'Necoro' Neumann",
author_email = "necoro@necoro.net",
packages = packages,
+ ext_modules = [libeix],
data_files = data_files,
- cmdclass={'build_manpage': build_manpage}
+ cmdclass={'build_manpage': build_manpage, 'build_ext' : build_ext}
)