Mercurial > cpython-lru_cache-weakref
comparison PCbuild/pythoncore.vcproj @ 46279:cc3333b7bd93
Merged revisions 62129,62131,62133 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62129 | trent.nelson | 2008-04-03 19:27:06 +0100 (Thu, 03 Apr 2008) | 16 lines
Reimplement kill_python. The existing version had a number of flaws, namely, it didn't work for x64 and it wasn't precise about which python_d.exe it was killing -- it just killed the first one it came across that happened to have 'pcbuild\python_d.exe' or 'build\python_d.exe' in it's path. The new version has been rewritten from the ground up and now lives in PCbuild, instead of Tools\buildbot, and it has also been incorporated into the Visual Studio solution (pcbuild.sln) as 'kill_python'. The solution has also been altered such that kill_python is called where necessary in the build process in order to prevent any linking errors due to open file locks. In lieu of this, all of the existing bits and pieces in Tools\buildbot that called out to kill_python at various points have also been removed as they are now obsolete. Tested on both Win32 and x64.
Change set (included to improve usefulness of svnmerge log entry):
M PCbuild\pythoncore.vcproj
M PCbuild\pcbuild.sln
M PCbuild\release.vsprops
A PCbuild\kill_python.vcproj
M PCbuild\debug.vsprops
A PCbuild\kill_python.c
D Tools\buildbot\kill_python.bat
D Tools\buildbot\kill_python.mak
M Tools\buildbot\build.bat
D Tools\buildbot\Makefile
M Tools\buildbot\build-amd64.bat
M Tools\buildbot\buildmsi.bat
D Tools\buildbot\kill_python.c
........
r62131 | trent.nelson | 2008-04-03 19:48:53 +0100 (Thu, 03 Apr 2008) | 1 line
Add the correct OutputFile values for debug builds. Fixes r62129's commit.
........
r62133 | trent.nelson | 2008-04-03 21:00:08 +0100 (Thu, 03 Apr 2008) | 1 line
Make kill_python a little more forgiving if it can't obtain a snapshot of module information for a given python[_d].exe process. Failing here was too pessimistic; the python[_d].exe process may be owned by another user, which is the case in some buildbot environments.
........
| author | Trent Nelson <trent.nelson@snakebite.org> |
|---|---|
| date | Thu, 03 Apr 2008 20:47:30 +0000 |
| parents | b91ca87e6f32 |
| children | 3ab5474bde45 |
comparison
equal
deleted
inserted
replaced
| 46278:67f1c465279c | 46279:cc3333b7bd93 |
|---|---|
| 56 Culture="1033" | 56 Culture="1033" |
| 57 AdditionalIncludeDirectories="..\Include" | 57 AdditionalIncludeDirectories="..\Include" |
| 58 /> | 58 /> |
| 59 <Tool | 59 <Tool |
| 60 Name="VCPreLinkEventTool" | 60 Name="VCPreLinkEventTool" |
| 61 Description="generate buildinfo" | 61 Description="Generate build information and kill existing Python processes..." |
| 62 CommandLine=""$(SolutionDir)make_buildinfo.exe" $(ConfigurationName)" | 62 CommandLine=""$(SolutionDir)make_buildinfo.exe" Release
"$(KillPythonExe)"" |
| 63 /> | 63 /> |
| 64 <Tool | 64 <Tool |
| 65 Name="VCLinkerTool" | 65 Name="VCLinkerTool" |
| 66 AdditionalDependencies="getbuildinfo.o" | 66 AdditionalDependencies="getbuildinfo.o" |
| 67 OutputFile="$(OutDir)\$(PyDllName).dll" | 67 OutputFile="$(OutDir)\$(PyDllName).dll" |
| 131 Culture="1033" | 131 Culture="1033" |
| 132 AdditionalIncludeDirectories="..\Include" | 132 AdditionalIncludeDirectories="..\Include" |
| 133 /> | 133 /> |
| 134 <Tool | 134 <Tool |
| 135 Name="VCPreLinkEventTool" | 135 Name="VCPreLinkEventTool" |
| 136 Description="generate buildinfo" | 136 Description="Generate build information and kill existing Python processes..." |
| 137 CommandLine="$(SolutionDir)make_buildinfo.exe $(ConfigurationName)" | 137 CommandLine=""$(SolutionDir)make_buildinfo.exe" Release
"$(KillPythonExe)"" |
| 138 /> | 138 /> |
| 139 <Tool | 139 <Tool |
| 140 Name="VCLinkerTool" | 140 Name="VCLinkerTool" |
| 141 AdditionalDependencies="getbuildinfo.o" | 141 AdditionalDependencies="getbuildinfo.o" |
| 142 OutputFile="$(OutDir)\$(PyDllName).dll" | 142 OutputFile="$(OutDir)\$(PyDllName).dll" |
| 209 Culture="1033" | 209 Culture="1033" |
| 210 AdditionalIncludeDirectories="..\Include" | 210 AdditionalIncludeDirectories="..\Include" |
| 211 /> | 211 /> |
| 212 <Tool | 212 <Tool |
| 213 Name="VCPreLinkEventTool" | 213 Name="VCPreLinkEventTool" |
| 214 Description="generate buildinfo" | 214 Description="Generate build information and kill existing Python processes..." |
| 215 CommandLine=""$(SolutionDir)make_buildinfo.exe" $(ConfigurationName)" | 215 CommandLine=""$(SolutionDir)make_buildinfo.exe" Debug
"$(KillPythonExe)"" |
| 216 /> | 216 /> |
| 217 <Tool | 217 <Tool |
| 218 Name="VCLinkerTool" | 218 Name="VCLinkerTool" |
| 219 AdditionalDependencies="getbuildinfo.o" | 219 AdditionalDependencies="getbuildinfo.o" |
| 220 OutputFile="$(OutDir)\$(PyDllName)_d.dll" | 220 OutputFile="$(OutDir)\$(PyDllName)_d.dll" |
| 287 Culture="1033" | 287 Culture="1033" |
| 288 AdditionalIncludeDirectories="..\Include" | 288 AdditionalIncludeDirectories="..\Include" |
| 289 /> | 289 /> |
| 290 <Tool | 290 <Tool |
| 291 Name="VCPreLinkEventTool" | 291 Name="VCPreLinkEventTool" |
| 292 Description="generate buildinfo" | 292 Description="Generate build information and kill existing Python processes..." |
| 293 CommandLine="$(SolutionDir)make_buildinfo.exe $(ConfigurationName)" | 293 CommandLine=""$(SolutionDir)make_buildinfo.exe" Debug
"$(KillPythonExe)"" |
| 294 /> | 294 /> |
| 295 <Tool | 295 <Tool |
| 296 Name="VCLinkerTool" | 296 Name="VCLinkerTool" |
| 297 AdditionalDependencies="getbuildinfo.o" | 297 AdditionalDependencies="getbuildinfo.o" |
| 298 OutputFile="$(OutDir)\$(PyDllName)_d.dll" | 298 OutputFile="$(OutDir)\$(PyDllName)_d.dll" |
| 361 Culture="1033" | 361 Culture="1033" |
| 362 AdditionalIncludeDirectories="..\Include" | 362 AdditionalIncludeDirectories="..\Include" |
| 363 /> | 363 /> |
| 364 <Tool | 364 <Tool |
| 365 Name="VCPreLinkEventTool" | 365 Name="VCPreLinkEventTool" |
| 366 Description="generate buildinfo" | 366 Description="Generate build information and kill existing Python processes..." |
| 367 CommandLine="$(SolutionDir)make_buildinfo.exe Release" | 367 CommandLine=""$(SolutionDir)make_buildinfo.exe" Release
"$(KillPythonExe)"" |
| 368 /> | 368 /> |
| 369 <Tool | 369 <Tool |
| 370 Name="VCLinkerTool" | 370 Name="VCLinkerTool" |
| 371 AdditionalDependencies="getbuildinfo.o" | 371 AdditionalDependencies="getbuildinfo.o" |
| 372 OutputFile="$(OutDir)\$(PyDllName).dll" | 372 OutputFile="$(OutDir)\$(PyDllName).dll" |
| 436 Culture="1033" | 436 Culture="1033" |
| 437 AdditionalIncludeDirectories="..\Include" | 437 AdditionalIncludeDirectories="..\Include" |
| 438 /> | 438 /> |
| 439 <Tool | 439 <Tool |
| 440 Name="VCPreLinkEventTool" | 440 Name="VCPreLinkEventTool" |
| 441 Description="generate buildinfo" | 441 Description="Generate build information and kill existing Python processes..." |
| 442 CommandLine="$(SolutionDir)make_buildinfo.exe $(ConfigurationName)" | 442 CommandLine=""$(SolutionDir)make_buildinfo.exe" Release
"$(KillPythonExe)"" |
| 443 /> | 443 /> |
| 444 <Tool | 444 <Tool |
| 445 Name="VCLinkerTool" | 445 Name="VCLinkerTool" |
| 446 AdditionalDependencies="getbuildinfo.o" | 446 AdditionalDependencies="getbuildinfo.o" |
| 447 OutputFile="$(OutDir)\$(PyDllName).dll" | 447 OutputFile="$(OutDir)\$(PyDllName).dll" |
| 511 Culture="1033" | 511 Culture="1033" |
| 512 AdditionalIncludeDirectories="..\Include" | 512 AdditionalIncludeDirectories="..\Include" |
| 513 /> | 513 /> |
| 514 <Tool | 514 <Tool |
| 515 Name="VCPreLinkEventTool" | 515 Name="VCPreLinkEventTool" |
| 516 Description="generate buildinfo" | 516 Description="Generate build information and kill existing Python processes..." |
| 517 CommandLine="$(SolutionDir)make_buildinfo.exe Release" | 517 CommandLine=""$(SolutionDir)make_buildinfo.exe" Release
"$(KillPythonExe)"" |
| 518 /> | 518 /> |
| 519 <Tool | 519 <Tool |
| 520 Name="VCLinkerTool" | 520 Name="VCLinkerTool" |
| 521 AdditionalDependencies="getbuildinfo.o" | 521 AdditionalDependencies="getbuildinfo.o" |
| 522 OutputFile="$(OutDir)\$(PyDllName).dll" | 522 OutputFile="$(OutDir)\$(PyDllName).dll" |
| 586 Culture="1033" | 586 Culture="1033" |
| 587 AdditionalIncludeDirectories="..\Include" | 587 AdditionalIncludeDirectories="..\Include" |
| 588 /> | 588 /> |
| 589 <Tool | 589 <Tool |
| 590 Name="VCPreLinkEventTool" | 590 Name="VCPreLinkEventTool" |
| 591 Description="generate buildinfo" | 591 Description="Generate build information and kill existing Python processes..." |
| 592 CommandLine="$(SolutionDir)make_buildinfo.exe $(ConfigurationName)" | 592 CommandLine=""$(SolutionDir)make_buildinfo.exe" Release
"$(KillPythonExe)"" |
| 593 /> | 593 /> |
| 594 <Tool | 594 <Tool |
| 595 Name="VCLinkerTool" | 595 Name="VCLinkerTool" |
| 596 AdditionalDependencies="getbuildinfo.o" | 596 AdditionalDependencies="getbuildinfo.o" |
| 597 OutputFile="$(OutDir)\$(PyDllName).dll" | 597 OutputFile="$(OutDir)\$(PyDllName).dll" |
