davemds pushed a commit to branch master.

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

commit c0f2f5b379a99516e5d10927ee5a3d6abaabb2ad
Author: Dave Andreoli <[email protected]>
Date:   Fri Jan 2 01:09:40 2015 +0100

    setup.py: be more verbose about python and cython versions
---
 setup.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/setup.py b/setup.py
index 86f426e..eda8486 100755
--- a/setup.py
+++ b/setup.py
@@ -184,6 +184,22 @@ packages = ["efl"]
 
 if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
 
+    # === Python ===
+    sys.stdout.write("Checking for Python: ")
+    py_ver = sys.version_info
+    py_ver = "%s.%s.%s" % (py_ver[0], py_ver[1], py_ver[2])
+    if sys.hexversion < 0x020600f0:
+        raise SystemExit("too old. Found: %s  Need at least 2.6.0" % py_ver)
+    else:
+        sys.stdout.write("OK, found %s\n" % py_ver)
+
+    # === Cython ===
+    sys.stdout.write("Checking for Cython: ")
+    if module_suffix == ".c":
+        sys.stdout.write("no need, using pre-generated C files\n")
+    else:
+        sys.stdout.write("OK, found %s\n" % Cython.__version__)
+
     # === Eina ===
     eina_cflags, eina_libs = pkg_config('Eina', 'eina', EFL_MIN_VER)
 

-- 


Reply via email to