<#20227 Add `compress`/`uncompressed` flag to `pex...
# github-notifications
c
#20227 Add `compress`/`uncompressed` flag to `pex_binary` Issue created by tgolsson Is your feature request related to a problem? Please describe. When iterating on
pex_binary
targets for large ML packages, the zip time can easily dominate the whole runtime. This is fine when shipping out the pex as is, but when using it for
run
, debugging, or immediately unpacking into a container, it's wasted effort. For example, pantsbuild/pex#2292 #20205 Describe the solution you'd like Would wrap the following
pex
option:
Copy code
--compress, --compressed, --no-compress, --not-compressed, --no-compression
                        Whether to compress zip entries when creating either a
                        zipapp PEX file or a packed PEX's bootstrap and
                        dependency zip files. Does nothing for loose layout
                        PEXes. (default: True)
This would be exposed on the `pex_binaries`/`pex_binary` target. Additional context I'm planning to do this work, just filing an issue to have it tracked. pantsbuild/pants