classification
Title: distutils build_ext path comparison only based on strings
Type: behavior Stage:
Components: Distutils Versions: Python 3.2, Python 3.1, Python 2.7, Python 2.6
process
Status: open Resolution: accepted
Dependencies: Superseder:
Assigned To: tarek Nosy List: jougs, sleipnir, tarek (3)
Priority: normal Keywords patch

Created on 2009-05-26 10:55 by sleipnir, last changed 2009-09-07 08:11 by tarek.

Files
File name Uploaded Description Edit Remove
python-2.5.2-build_ext-pathcompare.patch sleipnir, 2009-05-26 10:55 Fix path comparison in distutils build_ext
Messages (1)
msg88351 - (view) Author: Sven Rebhan (sleipnir) Date: 2009-05-26 10:55
If python is installed into a symlink'ed directory, the variables
"sys.exec_prefix" and "sys.executable" can contain different paths.
Therefore, the respective test in build_ext.py fails (line 202)
and a wrong library search directory (-L.) is set.

The attached patch fixes this issue, by using os.path.samefile() instead
of the string comparison to see whether two files are identical
irrespective of their paths.
History
Date User Action Args
2009-09-07 08:11:24tareksetpriority: normal
resolution: accepted
versions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.5
2009-05-26 10:59:37jougssetnosy: + jougs
2009-05-26 10:55:57sleipnircreate