Skip to content

Add pexrc platform {info,python}.#121

Merged
jsirois merged 4 commits into
pex-tool:mainfrom
jsirois:python-platform/target
May 29, 2026
Merged

Add pexrc platform {info,python}.#121
jsirois merged 4 commits into
pex-tool:mainfrom
jsirois:python-platform/target

Conversation

@jsirois
Copy link
Copy Markdown
Member

@jsirois jsirois commented May 29, 2026

These new sub-commands form an improved replacement for
pex3 interpreter inspect. In addition to producing
--complete-platform JSON for local interpreters the
pexrc platform python command can take an abbreviated platform string
similar to a Pex --abbreviated-platform string and produce a complete
platform (save only for 1 or 2 little used markers).

The machinery powering pexrc python platform was ported from the PyPA
packaging library to Rust, yielding a little more than 10% cold cache
startup time improvement for injected PEXes.

jsirois added 2 commits May 29, 2026 01:31
These new subcommands form an improved replacement for `pex3 interpreter
inspect`. In addition to producing `--complete-platform` JSON for local
interpreters the `pexrc platform python` command can take an abbreviated
platform string similar to a Pex --abbreviated-platform string and
produce a complete platform (save only for 1 or 2 little used markers).

The machinery powering `pexrc python platform` was ported from the PyPA
packaging library to Rust, yielding a little more than 10% cold cache
startup time improvement for injected PEXes.
@jsirois jsirois force-pushed the python-platform/target branch from 90a45a1 to 0fe9ba4 Compare May 29, 2026 08:53
@jsirois jsirois merged commit b844a73 into pex-tool:main May 29, 2026
45 of 48 checks passed
@jsirois jsirois deleted the python-platform/target branch May 29, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant