Message348235
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 |
|
Date |
User |
Action |
Args |
2019-07-21 11:07:21 | Bill Collins | set | recipients:
+ Bill Collins, paul.moore, tim.golden, zach.ware, steve.dower |
2019-07-21 11:07:21 | Bill Collins | set | messageid: <1563707241.42.0.696780467352.issue37641@roundup.psfhosted.org> |
2019-07-21 11:07:21 | Bill Collins | link | issue37641 messages |
2019-07-21 11:07:20 | Bill Collins | create | |
|