]> granicus.if.org Git - python/commitdiff
Port bugfix from 2.4 maint.
authorTim Peters <tim.peters@gmail.com>
Sat, 12 Mar 2005 19:05:58 +0000 (19:05 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 12 Mar 2005 19:05:58 +0000 (19:05 +0000)
Bug #1160802:  Can't build Zope on Windows w/ 2.4.1c1.

MSVCCompiler.initialize():  set self.initialized to True, as suggested
by AMK.  Else we keep growing the PATH endlessly, with each new C
extension built, until putenv() complains.

No change to NEWS because the patch that created this bug is also new
for 2.5a1 (so there's no change here to any code yet released from HEAD).

Lib/distutils/msvccompiler.py

index 8106df61777b78daba852631badd4fbef9b19b77..b94d35f15f4d30baf6d11a6b5becd20b3811dff5 100644 (file)
@@ -255,6 +255,7 @@ class MSVCCompiler (CCompiler) :
                 ]
         self.ldflags_static = [ '/nologo']
 
+        self.initialized = True
 
     # -- Worker methods ------------------------------------------------