setup: prepare for future cffi modules by adding placeholder in setup
authorMaciej Fijalkowski <fijall@gmail.com>
Mon, 11 Jul 2016 10:44:18 +0200
changeset 29505 2dce3f96ad7b
parent 29504 7503d8874617
child 29506 2550604f5ec7
setup: prepare for future cffi modules by adding placeholder in setup
setup.py
--- a/setup.py	Fri Jul 08 16:48:38 2016 +0100
+++ b/setup.py	Mon Jul 11 10:44:18 2016 +0200
@@ -262,7 +262,8 @@
 
 
 class hgdist(Distribution):
-    pure = ispypy
+    pure = False
+    cffi = ispypy
 
     global_options = Distribution.global_options + \
                      [('pure', None, "use pure (slow) Python "
@@ -316,6 +317,10 @@
 
         if self.distribution.pure:
             self.distribution.ext_modules = []
+        elif self.distribution.cffi:
+            exts = []
+            # cffi modules go here
+            self.distribution.ext_modules = exts
         else:
             h = os.path.join(get_python_inc(), 'Python.h')
             if not os.path.exists(h):