[Python-checkins] cpython: Require Mercurial on PATH when building a Windows release.

steve.dower python-checkins at python.org
Fri Feb 6 18:05:49 CET 2015


https://hg.python.org/cpython/rev/b9816fb6f28d
changeset:   94547:b9816fb6f28d
user:        Steve Dower <steve.dower at microsoft.com>
date:        Fri Feb 06 09:02:54 2015 -0800
summary:
  Require Mercurial on PATH when building a Windows release.
Without it, we will generate invalid build information for sys.version

files:
  Tools/msi/buildrelease.bat |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/Tools/msi/buildrelease.bat b/Tools/msi/buildrelease.bat
--- a/Tools/msi/buildrelease.bat
+++ b/Tools/msi/buildrelease.bat
@@ -44,6 +44,9 @@
 if errorlevel 1 goto :eof
 :skipdoc
 
+where hg >nul 2>nul
+if errorlevel 1 echo Cannot find hg on PATH & exit /B 1
+
 where dlltool 2>nul >"%TEMP%\dlltool.loc"
 if errorlevel 1 dir "%D%..\..\externals\dlltool.exe" /s/b > "%TEMP%\dlltool.loc"
 if errorlevel 1 echo Cannot find binutils on PATH or in externals & exit /B 1

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list