From cad71d0a4a697ab392fa8af2ff27069852df9f58 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Fri, 20 Feb 2004 18:05:13 +0000 Subject: [PATCH] To avoid problems with conflicting dlls, the windows installers built by bdist_wininst *must* use the same runtime libary as the Python version. Actually this means the Python version where the installer is run, not the one which is used to build it. Must think about that - for now I assume MSVC6 is used up to Python 2.3, and MSVC7.1 is used starting at Python 2.4. So the filename for wininst.exe is now wininst-6.exe for the Release version and wininst-6_d.exe for the Debug version, when built with MSVC6. --- PC/bdist_wininst/wininst.dsp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PC/bdist_wininst/wininst.dsp b/PC/bdist_wininst/wininst.dsp index 2d951e6812d..43846a80018 100644 --- a/PC/bdist_wininst/wininst.dsp +++ b/PC/bdist_wininst/wininst.dsp @@ -53,9 +53,9 @@ BSC32=bscmake.exe # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 -# ADD LINK32 ..\..\..\zlib-1.1.4\zlib.lib imagehlp.lib comdlg32.lib ole32.lib comctl32.lib kernel32.lib user32.lib gdi32.lib advapi32.lib shell32.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"LIBC" +# ADD LINK32 ..\..\..\zlib-1.1.4\zlib.lib imagehlp.lib comdlg32.lib ole32.lib comctl32.lib kernel32.lib user32.lib gdi32.lib advapi32.lib shell32.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"LIBC" /out:"..\..\lib\distutils\command/wininst-6.exe" # Begin Special Build Tool -TargetPath=\sf\python\dist\src\lib\distutils\command\wininst.exe +TargetPath=\sf\python\dist\src\lib\distutils\command\wininst-6.exe SOURCE="$(InputPath)" PostBuild_Cmds=upx.exe --best $(TARGETPATH) || echo "wininst.exe not compressed" # End Special Build Tool @@ -84,7 +84,7 @@ BSC32=bscmake.exe # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept -# ADD LINK32 ..\..\..\zlib-1.1.4\zlib.lib imagehlp.lib comdlg32.lib ole32.lib comctl32.lib kernel32.lib user32.lib gdi32.lib advapi32.lib shell32.lib /nologo /subsystem:windows /pdb:none /debug /machine:I386 /nodefaultlib:"LIBC" /out:"./wininst_d.exe" +# ADD LINK32 ..\..\..\zlib-1.1.4\zlib.lib imagehlp.lib comdlg32.lib ole32.lib comctl32.lib kernel32.lib user32.lib gdi32.lib advapi32.lib shell32.lib /nologo /subsystem:windows /pdb:none /debug /machine:I386 /nodefaultlib:"LIBC" /out:"..\..\lib\distutils\command/wininst-6_d.exe" !ENDIF