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 pitti
Recipients barry, doko, michael.foord, pitrou, pitti, python-dev
Date 2013-11-29.16:23:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385742234.6.0.62866633263.issue19352@psf.upfronthosting.co.za>
In-reply-to
Content
In this new code:

                    mod_file = os.path.abspath(getattr(module, '__file__', full_path))
                    realpath = os.path.splitext(os.path.realpath(mod_file))[0]
                    fullpath_noext = os.path.splitext(os.path.realpath(full_path))[0]

we get

modfile == /usr/lib/python2.7/dist-packages/lazr/restfulclient/tests/test_error.pyc
realpath == /usr/lib/python2.7/dist-packages/lazr/restfulclient/tests/test_error
fullpath_noext == /usr/share/pyshared/lazr/restfulclient/tests/test_error

for this file:

lrwxrwxrwx 1 root root 71 Mai 26  2013 /usr/lib/python2.7/dist-packages/lazr/restfulclient/tests/test_error.py -> ../../../../../../share/pyshared/lazr/restfulclient/tests/test_error.py

Which is as expected in Debian/Ubuntu as the *.pyc file is a real file in /usr/lib/python2.7, but the *.py is symlinked to /usr/share/.

This new patch essentially enforces that the *.py file is not a symlink, which breaks the Debian-ish way of installing python 2 modules.
History
Date User Action Args
2013-11-29 16:23:54pittisetrecipients: + pitti, barry, doko, pitrou, michael.foord, python-dev
2013-11-29 16:23:54pittisetmessageid: <1385742234.6.0.62866633263.issue19352@psf.upfronthosting.co.za>
2013-11-29 16:23:54pittilinkissue19352 messages
2013-11-29 16:23:54pitticreate