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 Bill Collins
Recipients Bill Collins, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-07-21.11:07:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563707241.42.0.696780467352.issue37641@roundup.psfhosted.org>
In-reply-to
Content
pyc files within the embeddable zip are compiled with their filename as the temporary directory in which they are compiled. Thus, stack traces will appear as (e.g.) D:\obj\windows-release\37win32_Release\msi_python\zip_win32\image.py, which is a little surprising and not obvious that it's actually from email/mime/image.py.

We currently work around this by updating the pyc files before shipping to be relative paths to Lib/; however, fixing this upstream would appear to be as simple as passing through the dest from _write_to_zip to _py_temp_compile (https://github.com/python/cpython/blob/21a92f8cda525d25a165b773fbe1bfffd303a000/PC/layout/main.py#L302) to be passed into _compile_one_py
History
Date User Action Args
2019-07-21 11:07:21Bill Collinssetrecipients: + Bill Collins, paul.moore, tim.golden, zach.ware, steve.dower
2019-07-21 11:07:21Bill Collinssetmessageid: <1563707241.42.0.696780467352.issue37641@roundup.psfhosted.org>
2019-07-21 11:07:21Bill Collinslinkissue37641 messages
2019-07-21 11:07:20Bill Collinscreate