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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to