davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=0873394260e68f515f0c8f11e644dd67ae3949f0

commit 0873394260e68f515f0c8f11e644dd67ae3949f0
Author: Dave Andreoli <[email protected]>
Date:   Sun Jan 4 13:15:29 2015 +0100

    disable ecore_x by default
---
 setup.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/setup.py b/setup.py
index 40123ac..07ac4c8 100755
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,9 @@ CYTHON_MIN_VERSION = "0.19"
 EFL_MIN_VER = RELEASE
 ELM_MIN_VER = RELEASE
 
+# disable ecore_x by default (change here to enable)
+ENABLE_ECORE_X = False
+
 
 # Add git commit count for dev builds
 if vers[2] == 99:
@@ -112,8 +115,8 @@ class CleanGenerated(Command):
         pass
 
     def run(self):
-        for lib in ("eo", "evas", "ecore", "edje", "edje/edit", "emotion",
-                    "elementary", "ethumb", "utils"):
+        for lib in ("eo", "evas", "ecore", "ecore_x", "edje", "edje/edit",
+                    "emotion", "elementary", "ethumb", "utils"):
             lib_path = os.path.join(script_path, "efl", lib)
             for root, dirs, files in os.walk(lib_path):
                 for f in files:
@@ -238,15 +241,12 @@ if set(("build", "build_ext", "install", "bdist", 
"sdist")) & set(sys.argv):
     ext_modules.append(ecore_ext)
 
     # === Ecore X ===
-    try:
+    if ENABLE_ECORE_X:
         ecore_input_cflags, ecore_input_libs = pkg_config('EcoreInput',
                                                           'ecore-input',
                                                           EFL_MIN_VER)
         ecore_x_cflags, ecore_x_libs = pkg_config('EcoreX', 'ecore-x',
                                                   EFL_MIN_VER)
-    except SystemExit:  # FIXME: Change pkg-config to return a value
-        pass
-    else:
         ecore_x_ext = Extension("ecore_x",
                                 ["efl/ecore_x/efl.ecore_x" + module_suffix],
                                 include_dirs=['include/'],

-- 


Reply via email to