[New-bugs-announce] [issue6114] distutils build_ext path comparison only based on strings

Sven Rebhan report at bugs.python.org
Tue May 26 12:55:59 CEST 2009


New submission from Sven Rebhan <OdinsHorse at googlemail.com>:

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.

----------
assignee: tarek
components: Distutils
files: python-2.5.2-build_ext-pathcompare.patch
keywords: patch
messages: 88351
nosy: sleipnir, tarek
severity: normal
status: open
title: distutils build_ext path comparison only based on strings
type: behavior
versions: Python 2.5, Python 2.6
Added file: http://bugs.python.org/file14073/python-2.5.2-build_ext-pathcompare.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6114>
_______________________________________


More information about the New-bugs-announce mailing list