File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,7 +118,8 @@ foreach (System.Diagnostics.Process p in System.Diagnostics.Process.GetProcesses
118118 </Code >
119119 </Task >
120120 </UsingTask >
121- <Target Name =" KillPython" BeforeTargets =" InitializeBuildStatus" Condition =" $([msbuild]::ValueOrDefault($(KillPython), 'false'))" >
121+
122+ <Target Name =" KillPython" BeforeTargets =" InitializeBuildStatus" Condition =" '$(KillPython)' == 'true'" >
122123 <Message Text =" Killing any running python.exe instances..." Importance =" high" />
123124 <KillPython FileName =" $(OutDir)python$(PyDebugExt).exe" />
124125 </Target >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if "%1" == "x64" (
1616call " %pcbuild% \env.bat" %vcvars_target%
1717
1818echo .Attempting to kill Pythons...
19- msbuild /v:m /nologo /target:KillPython " %pcbuild% \pythoncore.vcxproj" /p:Configuration=Release /p:Platform=%platform%
19+ msbuild /v:m /nologo /target:KillPython " %pcbuild% \pythoncore.vcxproj" /p:Configuration=Release /p:Platform=%platform% /p:KillPython=true
2020
2121echo Deleting .pyc/.pyo files ...
2222del /s " %root% \Lib\*.pyc" " %root% \Lib\*.pyo"
You can’t perform that action at this time.
0 commit comments