Show More
@@ -18,8 +18,10 import sys | |||||
18 | # cffi-allow - allow pure Python implementation if cffi version is missing |
|
18 | # cffi-allow - allow pure Python implementation if cffi version is missing | |
19 | # py - only load pure Python modules |
|
19 | # py - only load pure Python modules | |
20 | # |
|
20 | # | |
21 | # By default, require the C extensions for performance reasons. |
|
21 | # By default, fall back to the pure modules so the in-place build can | |
22 | policy = b'c' |
|
22 | # run without recompiling the C extensions. This will be overridden by | |
|
23 | # __modulepolicy__ generated by setup.py. | |||
|
24 | policy = b'allow' | |||
23 | policynoc = (b'cffi', b'cffi-allow', b'py') |
|
25 | policynoc = (b'cffi', b'cffi-allow', b'py') | |
24 | policynocffi = (b'c', b'py') |
|
26 | policynocffi = (b'c', b'py') | |
25 |
|
27 |
@@ -372,6 +372,9 class hgbuildpy(build_py): | |||||
372 | def run(self): |
|
372 | def run(self): | |
373 | if self.distribution.pure: |
|
373 | if self.distribution.pure: | |
374 | modulepolicy = 'py' |
|
374 | modulepolicy = 'py' | |
|
375 | elif self.build_lib == '.': | |||
|
376 | # in-place build should run without rebuilding C extensions | |||
|
377 | modulepolicy = 'allow' | |||
375 | else: |
|
378 | else: | |
376 | modulepolicy = 'c' |
|
379 | modulepolicy = 'c' | |
377 | with open("mercurial/__modulepolicy__.py", "w") as f: |
|
380 | with open("mercurial/__modulepolicy__.py", "w") as f: |
General Comments 0
You need to be logged in to leave comments.
Login now