]> granicus.if.org Git - python/commitdiff
Make zlib builtin.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 3 Jan 2006 07:10:14 +0000 (07:10 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 3 Jan 2006 07:10:14 +0000 (07:10 +0000)
PC/config.c
PCbuild/pcbuild.sln
PCbuild/pythoncore.vcproj
PCbuild/readme.txt
PCbuild/zlib.vcproj [deleted file]
Tools/msi/msi.py

index 9ac69e348f184301fc5efaa7ab1fe4551add8b93..962d9b908de0e26d46dc000825ce36c61a3186b5 100644 (file)
@@ -56,6 +56,7 @@ extern void initparser(void);
 extern void init_winreg(void);
 extern void initdatetime(void);
 extern void initfunctional(void);
+extern void initzlib(void);
 
 extern void init_multibytecodec(void);
 extern void init_codecs_cn(void);
@@ -133,7 +134,8 @@ struct _inittab _PyImport_Inittab[] = {
 
        {"xxsubtype", initxxsubtype},
        {"zipimport", initzipimport},
-
+       {"zlib", initzlib},
+       
        /* CJK codecs */
        {"_multibytecodec", init_multibytecodec},
        {"_codecs_cn", init_codecs_cn},
index d75e7fbb4b2611ab4ba86e9a9d8f263f9cb75649..8f998c3697c91d501031e42eaef66f4e9ca10c1a 100644 (file)
@@ -74,11 +74,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "winsound", "winsound.vcproj
                {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}\r
        EndProjectSection\r
 EndProject\r
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "zlib", "zlib.vcproj", "{680CDC79-9CCA-4282-9A8D-927CB0DB55B2}"\r
-       ProjectSection(ProjectDependencies) = postProject\r
-               {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}\r
-       EndProjectSection\r
-EndProject\r
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_elementtree", "_elementtree.vcproj", "{1966DDE2-4AB7-4E4E-ACC9-C121E4D37F8E}"\r
        ProjectSection(ProjectDependencies) = postProject\r
                {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}\r
@@ -180,12 +175,6 @@ Global
                {51F35FAE-FB92-4B2C-9187-1542C065AD77}.Release.Build.0 = Release|Win32\r
                {51F35FAE-FB92-4B2C-9187-1542C065AD77}.ReleaseItanium.ActiveCfg = ReleaseItanium|Win32\r
                {51F35FAE-FB92-4B2C-9187-1542C065AD77}.ReleaseItanium.Build.0 = ReleaseItanium|Win32\r
-               {680CDC79-9CCA-4282-9A8D-927CB0DB55B2}.Debug.ActiveCfg = Debug|Win32\r
-               {680CDC79-9CCA-4282-9A8D-927CB0DB55B2}.Debug.Build.0 = Debug|Win32\r
-               {680CDC79-9CCA-4282-9A8D-927CB0DB55B2}.Release.ActiveCfg = Release|Win32\r
-               {680CDC79-9CCA-4282-9A8D-927CB0DB55B2}.Release.Build.0 = Release|Win32\r
-               {680CDC79-9CCA-4282-9A8D-927CB0DB55B2}.ReleaseItanium.ActiveCfg = ReleaseItanium|Win32\r
-               {680CDC79-9CCA-4282-9A8D-927CB0DB55B2}.ReleaseItanium.Build.0 = ReleaseItanium|Win32\r
                {1966DDE2-4AB7-4E4E-ACC9-C121E4D37F8E}.Debug.ActiveCfg = Debug|Win32\r
                {1966DDE2-4AB7-4E4E-ACC9-C121E4D37F8E}.Debug.Build.0 = Debug|Win32\r
                {1966DDE2-4AB7-4E4E-ACC9-C121E4D37F8E}.Release.ActiveCfg = Release|Win32\r
index aceb7652dc8fba540db9b7668bd3bcce550de5eb..15a37e51de089536cfc94260237386a8bfe259c1 100644 (file)
        <References>
        </References>
        <Files>
+               <Filter
+                       Name="zlib"
+                       Filter="">
+                       <File
+                               RelativePath="..\Modules\zlib\adler32.c">
+                       </File>
+                       <File
+                               RelativePath="..\Modules\zlib\compress.c">
+                       </File>
+                       <File
+                               RelativePath="..\Modules\zlib\crc32.c">
+                       </File>
+                       <File
+                               RelativePath="..\Modules\zlib\deflate.c">
+                       </File>
+                       <File
+                               RelativePath="..\Modules\zlib\gzio.c">
+                       </File>
+                       <File
+                               RelativePath="..\Modules\zlib\infback.c">
+                       </File>
+                       <File
+                               RelativePath="..\Modules\zlib\inffast.c">
+                       </File>
+                       <File
+                               RelativePath="..\Modules\zlib\inflate.c">
+                       </File>
+                       <File
+                               RelativePath="..\Modules\zlib\inftrees.c">
+                       </File>
+                       <File
+                               RelativePath="..\Modules\zlib\trees.c">
+                       </File>
+                       <File
+                               RelativePath="..\Modules\zlib\uncompr.c">
+                       </File>
+                       <File
+                               RelativePath="..\Modules\zlibmodule.c">
+                               <FileConfiguration
+                                       Name="Release|Win32">
+                                       <Tool
+                                               Name="VCCLCompilerTool"
+                                               AdditionalIncludeDirectories="..\Modules\zlib"/>
+                               </FileConfiguration>
+                               <FileConfiguration
+                                       Name="Debug|Win32">
+                                       <Tool
+                                               Name="VCCLCompilerTool"
+                                               AdditionalIncludeDirectories="..\Modules\zlib"/>
+                               </FileConfiguration>
+                               <FileConfiguration
+                                       Name="ReleaseItanium|Win32">
+                                       <Tool
+                                               Name="VCCLCompilerTool"
+                                               AdditionalIncludeDirectories="..\Modules\zlib"/>
+                               </FileConfiguration>
+                       </File>
+                       <File
+                               RelativePath="..\Modules\zlib\zutil.c">
+                       </File>
+               </Filter>
                <File
                        RelativePath="..\Modules\_bisectmodule.c">
                </File>
index d9591bd83ce080b9ed9cd54670a5d0b1a508ef75..7ca818667c3491e680ba3b83f0bb925904bc5db9 100644 (file)
@@ -124,21 +124,6 @@ _tkinter
    nmake -f makefile.vc
    nmake -f makefile.vc install
 
-zlib
-    Python wrapper for the zlib compression library.  Get the source code
-    for version 1.2.3 from a convenient mirror at:
-        http://www.gzip.org/zlib/
-    Unpack into dist\zlib-1.2.3.
-    A custom pre-link step in the zlib project settings should manage to
-    build zlib-1.2.3\zlib.lib by magic before zlib.pyd (or zlib_d.pyd) is
-    linked in PCbuild\.
-    However, the zlib project is not smart enough to remove anything under
-    zlib-1.2.3\ when you do a clean, so if you want to rebuild zlib.lib
-    you need to clean up zlib-1.2.3\ by hand.
-    When building zlib.pyd for Itanium, the pre-link build step won't work,
-    so you will need to invoke nmake manually, using an IA64 build 
-    environment.
-
 bz2
     Python wrapper for the libbz2 compression library.  Homepage
         http://sources.redhat.com/bzip2/
diff --git a/PCbuild/zlib.vcproj b/PCbuild/zlib.vcproj
deleted file mode 100644 (file)
index 63e06ff..0000000
+++ /dev/null
@@ -1,245 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
-       ProjectType="Visual C++"
-       Version="7.10"
-       Name="zlib"
-       RootNamespace="zlib"
-       SccProjectName="zlib"
-       SccLocalPath="..">
-       <Platforms>
-               <Platform
-                       Name="Win32"/>
-       </Platforms>
-       <Configurations>
-               <Configuration
-                       Name="Debug|Win32"
-                       OutputDirectory=".\."
-                       IntermediateDirectory=".\x86-temp-debug\zlib"
-                       ConfigurationType="2"
-                       UseOfMFC="0"
-                       ATLMinimizesCRunTimeLibraryUsage="FALSE">
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="0"
-                               AdditionalIncludeDirectories="..\Include,..\PC,..\..\zlib-1.2.3"
-                               PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS"
-                               RuntimeLibrary="3"
-                               UsePrecompiledHeader="2"
-                               PrecompiledHeaderFile=".\x86-temp-debug\zlib/zlib.pch"
-                               AssemblerListingLocation=".\x86-temp-debug\zlib/"
-                               ObjectFile=".\x86-temp-debug\zlib/"
-                               ProgramDataBaseFileName=".\x86-temp-debug\zlib/"
-                               WarningLevel="3"
-                               SuppressStartupBanner="TRUE"
-                               DebugInformationFormat="3"
-                               CompileAs="0"/>
-                       <Tool
-                               Name="VCCustomBuildTool"/>
-                       <Tool
-                               Name="VCLinkerTool"
-                               AdditionalDependencies="..\..\zlib-1.2.3\zlib.lib"
-                               OutputFile="./zlib_d.pyd"
-                               LinkIncremental="1"
-                               SuppressStartupBanner="TRUE"
-                               IgnoreDefaultLibraryNames="libc;msvcrt"
-                               GenerateDebugInformation="TRUE"
-                               ProgramDatabaseFile=".\./zlib_d.pdb"
-                               SubSystem="2"
-                               BaseAddress="0x1e1B0000"
-                               ImportLibrary=".\./zlib_d.lib"
-                               TargetMachine="1"/>
-                       <Tool
-                               Name="VCMIDLTool"
-                               PreprocessorDefinitions="_DEBUG"
-                               MkTypLibCompatible="TRUE"
-                               SuppressStartupBanner="TRUE"
-                               TargetEnvironment="1"
-                               TypeLibraryName=".\./zlib.tlb"
-                               HeaderFileName=""/>
-                       <Tool
-                               Name="VCPostBuildEventTool"/>
-                       <Tool
-                               Name="VCPreBuildEventTool"/>
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                               Description="Checking static zlib has been built"
-                               CommandLine="cd ..\..\zlib-1.2.3
-nmake -nologo -f win32\Makefile.msc zlib.lib
-"/>
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                               PreprocessorDefinitions="_DEBUG"
-                               Culture="1033"/>
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"/>
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"/>
-                       <Tool
-                               Name="VCWebDeploymentTool"/>
-                       <Tool
-                               Name="VCManagedWrapperGeneratorTool"/>
-                       <Tool
-                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
-               </Configuration>
-               <Configuration
-                       Name="Release|Win32"
-                       OutputDirectory=".\."
-                       IntermediateDirectory=".\x86-temp-release\zlib"
-                       ConfigurationType="2"
-                       UseOfMFC="0"
-                       ATLMinimizesCRunTimeLibraryUsage="FALSE">
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="2"
-                               InlineFunctionExpansion="1"
-                               AdditionalIncludeDirectories="..\Include,..\PC,..\..\zlib-1.2.3"
-                               PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS"
-                               StringPooling="TRUE"
-                               RuntimeLibrary="2"
-                               EnableFunctionLevelLinking="TRUE"
-                               UsePrecompiledHeader="2"
-                               PrecompiledHeaderFile=".\x86-temp-release\zlib/zlib.pch"
-                               AssemblerListingLocation=".\x86-temp-release\zlib/"
-                               ObjectFile=".\x86-temp-release\zlib/"
-                               ProgramDataBaseFileName=".\x86-temp-release\zlib/"
-                               WarningLevel="3"
-                               SuppressStartupBanner="TRUE"
-                               DebugInformationFormat="3"
-                               CompileAs="0"/>
-                       <Tool
-                               Name="VCCustomBuildTool"/>
-                       <Tool
-                               Name="VCLinkerTool"
-                               AdditionalDependencies="..\..\zlib-1.2.3\zlib.lib"
-                               OutputFile="./zlib.pyd"
-                               LinkIncremental="1"
-                               SuppressStartupBanner="TRUE"
-                               IgnoreDefaultLibraryNames="libc"
-                               GenerateDebugInformation="TRUE"
-                               ProgramDatabaseFile=".\./zlib.pdb"
-                               SubSystem="2"
-                               BaseAddress="0x1e1B0000"
-                               ImportLibrary=".\./zlib.lib"
-                               TargetMachine="1"/>
-                       <Tool
-                               Name="VCMIDLTool"
-                               PreprocessorDefinitions="NDEBUG"
-                               MkTypLibCompatible="TRUE"
-                               SuppressStartupBanner="TRUE"
-                               TargetEnvironment="1"
-                               TypeLibraryName=".\./zlib.tlb"
-                               HeaderFileName=""/>
-                       <Tool
-                               Name="VCPostBuildEventTool"/>
-                       <Tool
-                               Name="VCPreBuildEventTool"/>
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                               Description="Checking static zlib has been built"
-                               CommandLine="cd ..\..\zlib-1.2.3
-nmake -nologo -f win32\Makefile.msc zlib.lib
-"/>
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                               PreprocessorDefinitions="NDEBUG"
-                               Culture="1033"/>
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"/>
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"/>
-                       <Tool
-                               Name="VCWebDeploymentTool"/>
-                       <Tool
-                               Name="VCManagedWrapperGeneratorTool"/>
-                       <Tool
-                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
-               </Configuration>
-               <Configuration
-                       Name="ReleaseItanium|Win32"
-                       OutputDirectory="./."
-                       IntermediateDirectory=".\ia64-temp-release\zlib"
-                       ConfigurationType="2"
-                       UseOfMFC="0"
-                       ATLMinimizesCRunTimeLibraryUsage="FALSE">
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               AdditionalOptions=" /USECL:MS_ITANIUM"
-                               Optimization="2"
-                               InlineFunctionExpansion="1"
-                               AdditionalIncludeDirectories="{MSSDKPATH}\include\Win64\atl;{MSSDKPATH}\include\Win64\crt;{MSSDKPATH}\include\Win64\crt\sys;{MSSDKPATH}\include\Win64\mfc;..\Include,..\PC,..\..\zlib-1.2.3"
-                               PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS"
-                               StringPooling="TRUE"
-                               BasicRuntimeChecks="0"
-                               RuntimeLibrary="2"
-                               BufferSecurityCheck="FALSE"
-                               EnableFunctionLevelLinking="TRUE"
-                               UsePrecompiledHeader="2"
-                               PrecompiledHeaderFile=".\ia64-temp-release\zlib/zlib.pch"
-                               AssemblerListingLocation=".\ia64-temp-release\zlib/"
-                               ObjectFile=".\ia64-temp-release\zlib/"
-                               ProgramDataBaseFileName=".\ia64-temp-release\zlib/"
-                               WarningLevel="3"
-                               SuppressStartupBanner="TRUE"
-                               Detect64BitPortabilityProblems="TRUE"
-                               DebugInformationFormat="3"
-                               CompileAs="0"/>
-                       <Tool
-                               Name="VCCustomBuildTool"/>
-                       <Tool
-                               Name="VCLinkerTool"
-                               AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK"
-                               AdditionalDependencies="..\..\zlib-1.2.3\zlib.lib"
-                               OutputFile="./zlib.pyd"
-                               LinkIncremental="1"
-                               SuppressStartupBanner="TRUE"
-                               IgnoreDefaultLibraryNames="libc"
-                               GenerateDebugInformation="TRUE"
-                               ProgramDatabaseFile=".\./zlib.pdb"
-                               SubSystem="2"
-                               BaseAddress="0x1e1B0000"
-                               ImportLibrary=".\./zlib.lib"
-                               TargetMachine="0"/>
-                       <Tool
-                               Name="VCMIDLTool"
-                               PreprocessorDefinitions="NDEBUG"
-                               MkTypLibCompatible="TRUE"
-                               SuppressStartupBanner="TRUE"
-                               TargetEnvironment="1"
-                               TypeLibraryName=".\./zlib.tlb"
-                               HeaderFileName=""/>
-                       <Tool
-                               Name="VCPostBuildEventTool"/>
-                       <Tool
-                               Name="VCPreBuildEventTool"/>
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                               Description="Checking static zlib has been built"
-                               CommandLine="cd ..\..\zlib-1.2.3
-nmake -nologo -f win32\Makefile.msc zlib.lib
-"/>
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                               PreprocessorDefinitions="NDEBUG"
-                               Culture="1033"/>
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"/>
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"/>
-                       <Tool
-                               Name="VCWebDeploymentTool"/>
-                       <Tool
-                               Name="VCManagedWrapperGeneratorTool"/>
-                       <Tool
-                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
-               </Configuration>
-       </Configurations>
-       <References>
-       </References>
-       <Files>
-               <File
-                       RelativePath="..\Modules\zlibmodule.c">
-               </File>
-       </Files>
-       <Globals>
-       </Globals>
-</VisualStudioProject>
index 19e72dce0f3b97c29039c3141e209062e91ad598..839eb9d3756c016c57d5a9e969de0bebbdd4bf11 100644 (file)
@@ -103,7 +103,6 @@ extensions = [
     'select.pyd',
     'unicodedata.pyd',
     'winsound.pyd',
-    'zlib.pyd',
     '_elementtree.pyd',
     '_bsddb.pyd',
     '_socket.pyd',
@@ -112,15 +111,9 @@ extensions = [
     '_tkinter.pyd',
 ]
 
-if major+minor <= "23":
+if major+minor <= "24":
     extensions.extend([
-    '_csv.pyd',
-    '_sre.pyd',
-    '_symtable.pyd',
-    '_winreg.pyd',
-    'datetime.pyd'
-    'mmap.pyd',
-    'parser.pyd',
+    'zlib.pyd',
     ])
 
 # Well-known component UUIDs