Skip to content

Commit a558be7

Browse files
committed
Issue python#29080: Removes hard dependency on hg.exe from PC/build.bat
2 parents d36432f + 654da96 commit a558be7

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,8 @@ Documentation
597597
Build
598598
-----
599599

600+
- Issue #29080: Removes hard dependency on hg.exe from PC/build.bat
601+
600602
- Issue #23903: Added missed names to PC/python3.def.
601603

602604
- Issue #28762: lockf() is available on Android API level 24, but the F_LOCK

PCbuild/build.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ if "%platf%"=="x64" (
106106
)
107107

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

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

151151
@echo off

0 commit comments

Comments
 (0)