[issue6114] distutils build_ext path comparison only based on strings

2010-09-08 Thread Sven Rebhan

Sven Rebhan  added the comment:

Of course there is a secret distutils comunity using git! ;-) The three ppl 
mentioned there found and fixed the problem, that's why.

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? I'm asking because in windows 
there might be no symlink either and everything just works(tm).

--

___
Python tracker 
<http://bugs.python.org/issue6114>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6114] distutils build_ext path comparison only based on strings

2009-05-26 Thread Sven Rebhan

New submission from Sven Rebhan :

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 
<http://bugs.python.org/issue6114>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com