breezy-fireman-62322
03/13/2025, 8:34 AMbroad-processor-92400
03/14/2025, 12:20 AMpython ./path/to/pex (if it's a zipapp) or python ./path/to/pex/__main__.py (if it's "loose" or "packed").
If it isn't be executed like this, then using the special import __pex__ import at the very start of the file is what's required. This'll set-up the dependencies for later import statements. I don't think this is well documented. https://github.com/pex-tool/lambdex/blob/main/MIGRATING.md hints at some of thisbroad-processor-92400
03/14/2025, 12:22 AMbroad-processor-92400
03/14/2025, 12:59 AM