setup: avoid procedure related to hg.exe at setup.py --pure stable
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Mon, 08 Feb 2016 21:12:13 +0900
branchstable
changeset 28041 8da94662afe5
parent 28040 6db47740e681
child 28056 4f8ced23345e
setup: avoid procedure related to hg.exe at setup.py --pure Before this patch, "setup.py --pure" fails on Windows, because hgbuildscripts.run() tries to copy "hg.exe", which doesn't generated at "setup.py --pure". At that time, run_command('build_hgexe') invoked in hgbuildscripts.run() does nothing and returns successfully. Therefore, subsequent procedure assuming existence of "hg.exe" fails. This patch avoids procedure related to "hg.exe" (= all of hgbuildscripts.run() except for build_scripts.run() invocation) at "setup.py --pure".
setup.py
--- a/setup.py	Fri Feb 05 23:17:07 2016 +0900
+++ b/setup.py	Mon Feb 08 21:12:13 2016 +0900
@@ -304,7 +304,7 @@
 
 class hgbuildscripts(build_scripts):
     def run(self):
-        if os.name != 'nt':
+        if os.name != 'nt' or self.distribution.pure:
             return build_scripts.run(self)
 
         exebuilt = False