[ python-Bugs-1160802 ] Can't build Zope on Windows w/ 2.4.1c1
SourceForge.net
noreply at sourceforge.net
Fri Mar 11 00:13:40 CET 2005
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: 7
Submitted By: Tim Peters (tim_one)
Assigned to: Nobody/Anonymous (nobody)
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 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
More information about the Python-bugs-list
mailing list