# HG changeset patch # User FUJIWARA Katsunori # Date 2016-02-08 12:12:13 # Node ID 8da94662afe51a836eda500652097772c34002e8 # Parent 6db47740e68122dd889e80e10e47d1fc622d2440 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". diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -304,7 +304,7 @@ class hgbuildext(build_ext): 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