Mercurial > hg
comparison setup.py @ 28041:8da94662afe5 stable
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".
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Mon, 08 Feb 2016 21:12:13 +0900 |
parents | f6d73c8756e2 |
children | 712298942c82 |
comparison
equal
deleted
inserted
replaced
28040:6db47740e681 | 28041:8da94662afe5 |
---|---|
302 log.warn("Failed to build optional extension '%s' (skipping)", | 302 log.warn("Failed to build optional extension '%s' (skipping)", |
303 ext.name) | 303 ext.name) |
304 | 304 |
305 class hgbuildscripts(build_scripts): | 305 class hgbuildscripts(build_scripts): |
306 def run(self): | 306 def run(self): |
307 if os.name != 'nt': | 307 if os.name != 'nt' or self.distribution.pure: |
308 return build_scripts.run(self) | 308 return build_scripts.run(self) |
309 | 309 |
310 exebuilt = False | 310 exebuilt = False |
311 try: | 311 try: |
312 self.run_command('build_hgexe') | 312 self.run_command('build_hgexe') |