Antoine Pitrou added the comment: On ven., 2013-11-29 at 16:23 +0000, Martin Pitt wrote: > This new patch essentially enforces that the *.py file is not a > symlink, which breaks the Debian-ish way of installing python 2 > modules.
So it doesn't help that Debian/Ubuntu likes to put symlinks everywhere, then... (the original issue is due to another peculiarity you've added) So, how about the following algorithm: - check that both paths are equal - if they aren't, call realpath() and check again - if they are still unequal, raise an error I suppose this is 2.7-only, btw? In 3.x, __file__ points to the py file and not the pyc file. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19352> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com