]> granicus.if.org Git - python/commitdiff
Update the URL for getting zlib, and update the minimal required
authorGuido van Rossum <guido@python.org>
Tue, 6 Aug 2002 17:28:30 +0000 (17:28 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 6 Aug 2002 17:28:30 +0000 (17:28 +0000)
version to 1.1.4 (because of the 1.1.3 security problem).  Also
replace a funny use of line.find() with line.startswith().

setup.py

index 5ac3c29e958c585154ba85e57292c3ff53af8d0c..5f101f47ac95edf196695a821ebc7ae337c61f0f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -653,19 +653,19 @@ class PyBuildExt(build_ext):
 
 
         # Andrew Kuchling's zlib module.
-        # This require zlib 1.1.3 (or later).
-        # See http://www.cdrom.com/pub/infozip/zlib/
+        # This requires zlib 1.1.4 (1.1.3 has a security problem).
+        # See http://www.gzip.org/zlib/
         zlib_inc = find_file('zlib.h', [], inc_dirs)
         if zlib_inc is not None:
             zlib_h = zlib_inc[0] + '/zlib.h'
             version = '"0.0.0"'
-            version_req = '"1.1.3"'
+            version_req = '"1.1.4"'
             fp = open(zlib_h)
             while 1:
                 line = fp.readline()
                 if not line:
                     break
-                if line.find('#define ZLIB_VERSION', 0) == 0:
+                if line.startswith('#define ZLIB_VERSION'):
                     version = line.split()[2]
                     break
             if version >= version_req: