]> granicus.if.org Git - python/commit
SF #1685563, MSVCCompiler creates redundant and long PATH strings
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 1 Apr 2007 18:24:22 +0000 (18:24 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 1 Apr 2007 18:24:22 +0000 (18:24 +0000)
commit8f35f44af3aacf1802253dc33e26e64306e55756
treec59f9448b02da4570bdbdab7d190315113c82256
parent1520fe4e5856ec92fdbff23765ad19159b2f609d
SF #1685563, MSVCCompiler creates redundant and long PATH strings

If MSVCCompiler.initialize() was called multiple times, the path
would get duplicated.  On Windows, this is a problem because the
path is limited to 4k.  There's no benefit in adding a path multiple
times, so prevent that from occuring.  We also normalize the path
before checking for duplicates so things like /a and /a/ won't both
be stored.

Will backport.
Lib/distutils/msvccompiler.py
Misc/NEWS