setup.py
changeset 32291 a04f5c651e52
parent 32273 feb910d2f59b
child 32406 a9c71d578a1c
--- a/setup.py	Thu May 11 14:52:02 2017 -0700
+++ b/setup.py	Wed Apr 26 23:02:43 2017 +0900
@@ -372,6 +372,9 @@
     def run(self):
         if self.distribution.pure:
             modulepolicy = 'py'
+        elif self.build_lib == '.':
+            # in-place build should run without rebuilding C extensions
+            modulepolicy = 'allow'
         else:
             modulepolicy = 'c'
         with open("mercurial/__modulepolicy__.py", "w") as f: