Bugs item #1160802, was opened at 2005-03-10 13:09
Message generated for change (Comment added) made by tim_one
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1160802&group_id=5470

Category: Distutils
Group: Python 2.4
Status: Open
Resolution: None
>Priority: 8
Submitted By: Tim Peters (tim_one)
>Assigned to: Tim Peters (tim_one)
Summary: Can't build Zope on Windows w/ 2.4.1c1

Initial Comment:
See the python-dev thread with the same name, at

<http://mail.python.org/pipermail/python-dev/2005-
March/051995.html>

The PATH we build, when compiling C extensions, 
keeps getting bigger until putenv() blows up.  Zope 
builds a lot of C extensions.

A simple but sane hack is adding a new:

.                if p not in self.__paths:

guard inside the:

.            for p in string.split(os.environ['path'], ';'):
.                self.__paths.append(p)

loop in 2.4.1c1's msvccompiler.py's initialize() function.

----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2005-03-10 23:24

Message:
Logged In: YES 
user_id=31435

Assigned to me.  I'll check in Andrew's fix Friday, pending 
more testing.  (Anthony approved this plan, BTW.)

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2005-03-10 18:13

Message:
Logged In: YES 
user_id=31435

On python-dev, AMK said:

"""
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.
"""

Adding that to the end of initialize() worked for me (and 
ripping out my hack).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1160802&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to