Show More
@@ -262,7 +262,8 b' class hgbuildmo(build):' | |||||
262 |
|
262 | |||
263 |
|
263 | |||
264 | class hgdist(Distribution): |
|
264 | class hgdist(Distribution): | |
265 |
pure = |
|
265 | pure = False | |
|
266 | cffi = ispypy | |||
266 |
|
267 | |||
267 | global_options = Distribution.global_options + \ |
|
268 | global_options = Distribution.global_options + \ | |
268 | [('pure', None, "use pure (slow) Python " |
|
269 | [('pure', None, "use pure (slow) Python " | |
@@ -316,6 +317,10 b' class hgbuildpy(build_py):' | |||||
316 |
|
317 | |||
317 | if self.distribution.pure: |
|
318 | if self.distribution.pure: | |
318 | self.distribution.ext_modules = [] |
|
319 | self.distribution.ext_modules = [] | |
|
320 | elif self.distribution.cffi: | |||
|
321 | exts = [] | |||
|
322 | # cffi modules go here | |||
|
323 | self.distribution.ext_modules = exts | |||
319 | else: |
|
324 | else: | |
320 | h = os.path.join(get_python_inc(), 'Python.h') |
|
325 | h = os.path.join(get_python_inc(), 'Python.h') | |
321 | if not os.path.exists(h): |
|
326 | if not os.path.exists(h): |
General Comments 0
You need to be logged in to leave comments.
Login now