➜

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.

作者 mathstuf
收信人 mathstuf
日期 2014-03-22.03:46:19
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1395459980.48.0.405815532542.issue21016@psf.upfronthosting.co.za>
In-reply-to
内容
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).
历史
日期 用户 动作 参数
2014-03-22 03:46:20mathstuf修改recipients: + mathstuf
2014-03-22 03:46:20mathstuf修改messageid: <1395459980.48.0.405815532542.issue21016@psf.upfronthosting.co.za>
2014-03-22 03:46:20mathstuf链接issue21016 messages
2014-03-22 03:46:19mathstuf创建