Bugs item #1569886, was opened at 2006-10-03 12:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1569886&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Distutils
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Lukas Lalinsky (luks)
Assigned to: Nobody/Anonymous (nobody)
Summary: distutils don't respect standard env variables
Initial Comment:
Using environment variables INCLUDE and LIB is a
standard way to set system-wide paths for C compilers.
However distutils.msvccompiler always overwrites these
variables with it's own values, which means users have
no way to customize their MSVC setups. It should
*append* the Python-specific stuff to the variables,
not overwrite them.
--- msvccompiler.py.orig 2006-10-03 12:56:15.812500000
+0200
+++ msvccompiler.py 2006-10-03 12:56:22.718750000 +0200
@@ -635,4 +635,7 @@
else:
p = self.get_msvc_paths(name)
if p:
- os.environ[name] = string.join(p, ';')
+ p = string.join(p, ';')
+ if name in os.environ:
+ p = os.environ[name] + ';' + p
+ os.environ[name] = p
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1569886&group_id=5470
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com