[issue6114] distutils build_ext path comparison only based on strings

Éric Araujo report at bugs.python.org
Sat Sep 11 19:39:40 CEST 2010


Éric Araujo <merwok at netwok.org> added the comment:

> The three ppl mentioned there found and fixed the problem, that's why.
The real question behind the joke was: Are you part of the same community? Where does this fix come from?

> But back to the issue: Can we use a switch or wrapper function to
> change the test method for this path dependent on the OS?
Symlink support detection is not trivial, it depends on platform, version and user rights (the docs say Windows Vista has a notion of “right to create a symlink”). See Lib/test/symlink_support.py for some scary code.  For our bug, I have hope that a simple “hasattr(os.path, 'samefile'” will be enough to decide whether to use this function or string comparison.

Do you want to add tests for this bug?

----------

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


More information about the Python-bugs-list mailing list