cool-easter-32542
09/18/2023, 11:29 PM__main__.py in the zip cannot handle zips that require zip64 extensions (see: https://bugs.python.org/issue32959). As such, if the Pex CLI can detect when it creates such a zip, it should warn if the detection is approximate or probably error if it is definite; otherwise the error later at runtime is a mysterious:
/path/to/python: can't find '__main__' module in '/path/of/PEX'
At some point this will be fixed (presumably) for some CPython versions, in which case the logic gets trickier. The absolute worst thing to do here would be to warn or error for a PEX that works with a version of Python where this is no longer a limitation!
This does raise the question of whether or not this is an issue for PyPy - no clue.
pantsbuild/pexcool-easter-32542
10/01/2023, 3:29 PM