This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients barry, doko, michael.foord, pitrou, pitti, python-dev
Date 2013-11-29.16:52:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385743920.2336.10.camel@fsol>
In-reply-to <1385742234.6.0.62866633263.issue19352@psf.upfronthosting.co.za>
Content
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.
History
Date User Action Args
2013-11-29 16:52:03pitrousetrecipients: + pitrou, barry, doko, michael.foord, python-dev, pitti
2013-11-29 16:52:03pitroulinkissue19352 messages
2013-11-29 16:52:02pitroucreate