summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-12-03 20:11:25 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-12-03 20:11:25 (GMT)
commit9cc113a8f7e80640f445c22fba3f9a448cc37af4 (patch)
treee5d0d8e9f25feb29a4b8c9849dc267a30d3fb169 /PCbuild
parent853ec5d408afc21154a08d86f3d92ac66245a159 (diff)
parentf00ef72ee1ef4f35eaa9ad8a760c11f8c21c5383 (diff)
downloadcpython-9cc113a8f7e80640f445c22fba3f9a448cc37af4.zip
cpython-9cc113a8f7e80640f445c22fba3f9a448cc37af4.tar.gz
cpython-9cc113a8f7e80640f445c22fba3f9a448cc37af4.tar.bz2
Issue #28846: Various installer fixes
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/build.bat4
-rw-r--r--PCbuild/pythoncore.vcxproj1
2 files changed, 5 insertions, 0 deletions
diff --git a/PCbuild/build.bat b/PCbuild/build.bat
index ffcc197..1ad58f8 100644
--- a/PCbuild/build.bat
+++ b/PCbuild/build.bat
@@ -105,6 +105,9 @@ 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
+
rem Setup the environment
call "%dir%env.bat" %vs_platf% >nul
@@ -142,6 +145,7 @@ msbuild "%dir%pcbuild.proj" /t:%target% %parallel% %verbose%^
/p:IncludeExternals=%IncludeExternals%^
/p:IncludeSSL=%IncludeSSL% /p:IncludeTkinter=%IncludeTkinter%^
/p:UseTestMarker=%UseTestMarker%^
+ /p:HG="%HG%"^
%1 %2 %3 %4 %5 %6 %7 %8 %9
@echo off
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index 89415ae..6b23d8e 100644
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -412,6 +412,7 @@
<_HG Condition="$(HG.Contains(` `))">"$(HG)"</_HG>
</PropertyGroup>
<Message Text="Getting build info from $(_HG)" Importance="high" />
+ <MakeDir Directories="$(IntDir)" Condition="!Exists($(IntDir))" />
<Exec Command="$(_HG) id -b &gt; &quot;$(IntDir)hgbranch.txt&quot;" ContinueOnError="true" />
<Exec Command="$(_HG) id -i &gt; &quot;$(IntDir)hgversion.txt&quot;" ContinueOnError="true" />
<Exec Command="$(_HG) id -t &gt; &quot;$(IntDir)hgtag.txt&quot;" ContinueOnError="true" />