[issue2975] VS8 include dirs grow without bound
Jim Kleckner
report at bugs.python.org
Thu Jul 24 01:15:50 CEST 2008
Jim Kleckner <jek-python at kleckner.net> added the comment:
Sorry, posted too quickly.
Actually, the problem was a little different.
There was an environment variable with '=' characters in it.
Here is a patch to deal with that:
--- msvc9compiler.py.orig 2008-07-23 16:13:25.248438400 -0700
+++ msvc9compiler.py 2008-07-23 16:13:54.059867200 -0700
@@ -252,7 +252,9 @@
if '=' not in line:
continue
line = line.strip()
- key, value = line.split('=')
+ i = line.index('=')
+ key = line[0:i]
+ value = line[i:]
key = key.lower()
if key in interesting:
if value.endswith(os.pathsep):
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2975>
_______________________________________
More information about the Python-bugs-list
mailing list