From: Tim Peters <tim.peters@gmail.com> Date: Sat, 12 Mar 2005 19:05:58 +0000 (+0000) Subject: Port bugfix from 2.4 maint. X-Git-Tag: v2.5a0~1928 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a733bd96f11f335c655461dadfaa285b16147e4f;p=python Port bugfix from 2.4 maint. 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). --- diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py index 8106df6177..b94d35f15f 100644 --- a/Lib/distutils/msvccompiler.py +++ b/Lib/distutils/msvccompiler.py @@ -255,6 +255,7 @@ class MSVCCompiler (CCompiler) : ] self.ldflags_static = [ '/nologo'] + self.initialized = True # -- Worker methods ------------------------------------------------