##// END OF EJS Templates
policy: relax the default for in-place build...
Yuya Nishihara -
r32251:a04f5c65 default
parent child Browse files
Show More
@@ -18,8 +18,10 b' 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 b' 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