[Python-Dev] Can't build Zope on Windows w/ 2.4.1c1 (original) (raw)

A.M. Kuchling amk at amk.ca
Thu Mar 10 19:06:22 CET 2005


On Thu, Mar 10, 2005 at 12:46:23PM -0500, Tim Peters wrote:

This is going to need someone who understands distutils internals. The strings we end up passing to putenv() grow absurdly large, and sooner or later Windows gets very unhappy with them.

In distutils.msvccompiler:

def __init__ (self, verbose=0, dry_run=0, force=0):
    ...
    self.initialized = False

def compile(self, sources,
            output_dir=None, macros=None, include_dirs=None, debug=0,
            extra_preargs=None, extra_postargs=None, depends=None):

    if not self.initialized: self.initialize()
...

def initialize(self):
... does not seem to set self.initialized to True!

I think the fix is to add 'self.initialized = True' to the initialize() method, but can't test it (no Windows). This fix should also go into 2.4.1-final, I expect.

--amk



More information about the Python-Dev mailing list