early-needle-54791
02/27/2020, 6:49 PMfast-nail-55400
02/27/2020, 7:06 PMearly-needle-54791
02/27/2020, 7:08 PMenough-analyst-54434
02/28/2020, 12:21 AMpython_binary
that's zip_safe=False
. The env vars just allow you to do this ad-hoc post facto.early-needle-54791
02/28/2020, 12:37 AMaloof-angle-91616
02/28/2020, 6:01 PMzip_safe=False
is the correct way to handle that (to confirm)early-needle-54791
02/28/2020, 6:35 PMenough-analyst-54434
02/28/2020, 6:46 PMBasically the point is that pex is not compatible with dill.dump_session, which is probably okay.Makes sense on all counts. The only way to make Pex compatible with this sort of thing would be a new feature where a pex can be marked zip_hostile=True ( 🙂 ) in which case it would have to fully unzip itself (not just user code and wheels like zip_safe=False does) and then re-exec.
early-needle-54791
02/28/2020, 7:12 PMenough-analyst-54434
02/28/2020, 7:32 PMpex --help
for --not-zip-safe
.early-needle-54791
02/28/2020, 7:33 PM