# HG changeset patch # User Maciej Fijalkowski # Date 2016-07-11 08:44:18 # Node ID 2dce3f96ad7b5411ee7f8deb18808fdb24bcbc4e # Parent 7503d8874617b1101a51ff883d0cbba07c9b099f setup: prepare for future cffi modules by adding placeholder in setup diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -262,7 +262,8 @@ class hgbuildmo(build): class hgdist(Distribution): - pure = ispypy + pure = False + cffi = ispypy global_options = Distribution.global_options + \ [('pure', None, "use pure (slow) Python " @@ -316,6 +317,10 @@ class hgbuildpy(build_py): 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):