Skip to content

Commit

Permalink
Issue python#29080: Removes hard dependency on hg.exe from PC/build.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Dec 28, 2016
2 parents 6c57708 + 7ec8a18 commit 654da96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Misc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ Tests
Build
-----

- Issue #29080: Removes hard dependency on hg.exe from PC/build.bat

- Issue #23903: Added missed names to PC/python3.def.

- Issue #28762: lockf() is available on Android API level 24, but the F_LOCK
Expand Down
6 changes: 3 additions & 3 deletions PCbuild/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ if "%platf%"=="x64" (
)

if not exist "%HG%" where hg > "%TEMP%\hg.loc" 2> nul && set /P HG= < "%TEMP%\hg.loc" & del "%TEMP%\hg.loc"
if not exist "%HG%" echo Cannot find Mercurial on PATH && exit /B 1
if exist "%HG%" set HGProperty=/p:HG="%HG%"
if not exist "%HG%" echo Cannot find Mercurial on PATH & set HGProperty=

rem Setup the environment
call "%dir%env.bat" %vs_platf% >nul
Expand Down Expand Up @@ -144,8 +145,7 @@ msbuild "%dir%pcbuild.proj" /t:%target% %parallel% %verbose%^
/p:Configuration=%conf% /p:Platform=%platf%^
/p:IncludeExternals=%IncludeExternals%^
/p:IncludeSSL=%IncludeSSL% /p:IncludeTkinter=%IncludeTkinter%^
/p:UseTestMarker=%UseTestMarker%^
/p:HG="%HG%"^
/p:UseTestMarker=%UseTestMarker% %HGProperty%^
%1 %2 %3 %4 %5 %6 %7 %8 %9

@echo off
Expand Down

0 comments on commit 654da96

Please sign in to comment.