This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Can't build Zope on Windows w/ 2.4.1c1
Type: Stage:
Components: Distutils Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: tim.peters Nosy List: tim.peters
Priority: release blocker Keywords:

Created on 2005-03-10 18:09 by tim.peters, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg24525 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2005-03-10 18:09
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.
msg24526 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2005-03-10 23:13
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).
msg24527 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2005-03-11 04:24
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.)
msg24528 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2005-03-11 17:23
Logged In: YES 
user_id=31435

Fixed, via AMK's suggestion:

Lib/distutils/msvccompiler.py 1.64.2.3
Misc/NEWS 1.1193.2.35

Not an issue for 2.5 (MSVCCompiler initialization is already 
OK there).
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41679
2005-03-10 18:09:36tim.peterscreate