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 mathstuf
Recipients mathstuf
Date 2014-03-22.03:46:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395459980.48.0.405815532542.issue21016@psf.upfronthosting.co.za>
In-reply-to
Content
In the --ignore-dir handling of trace.py, the following is done:

                s = s.replace("$prefix",
                              os.path.join(sys.base_prefix, "lib",
                                           "python" + sys.version[:3]))
                s = s.replace("$exec_prefix",
                              os.path.join(sys.base_exec_prefix, "lib",
                                           "python" + sys.version[:3]))

This does not do what is expected on 64-bit Fedora and newer Debian since the proper directory is /usr/lib64/python2.7 or /usr/lib/$triple/python2.7. Just the libsuffix can't be changed either since Fedora also has /usr/lib/python2.7 for arch-independent modules. It'd be nice if $prefix were replaced with the following directories from sysconfig.get_paths(): platstdlib, platlib, purelib, and stdlib.

It also erroneously replaces things like '$prefixpath'. It should probably do split the path on the path separators and only replace components that are equal to $prefix or $exec_prefix (so that the '$' can be escaped for directories named as such literally, but that would require a pass to parse the escapes).
History
Date User Action Args
2014-03-22 03:46:20mathstufsetrecipients: + mathstuf
2014-03-22 03:46:20mathstufsetmessageid: <1395459980.48.0.405815532542.issue21016@psf.upfronthosting.co.za>
2014-03-22 03:46:20mathstuflinkissue21016 messages
2014-03-22 03:46:19mathstufcreate