<#22654 Arguments for pex_binary targets to build ...
# github-notifications
q
#22654 Arguments for pex_binary targets to build pex scie's Issue created by gdfast Is your feature request related to a problem? Please describe. The PEX tool offers options to build PEX files that include full python distributions (or lazily retrieves a python distribution). These are compelling options for building PEX files that are maximally portable. pants is commonly used to build PEX files, and I think we should include a way to easily build scie pex files. Describe the solution you'd like A new argument for
pex_binary
and
pex_binaries
targets: pex_binary( ... scie="eager", # or "lazy", default: None ) There possibly needs to be a few other optional args to make this work. I think the python interpreter determined by pants should be the version of python used. Describe alternatives you've considered One alternative is better documentation about how to do this now using extra_build_args, but this isn't very user friendly Additional context Discussion in slack: https://pantsbuild.slack.com/archives/C046T6T9U/p1741182156086479 Relates to #22044, but unlike that one is more about making this user-friendly pantsbuild/pants