Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make all "local dists" PEXes internal-only #20746

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Apr 3, 2024

This marks all local dist PEXes as internal-only, removing the ability for them to be anything but internal. This is almost true already, except for PEXes built via PexFromTargetsRequest, where the local dists PEX used for building the "real" PEX has the same internal status as that real PEX. In this case, the local dists PEX still isn't surfaced to users, so it's appropriate for that one to be internal too.

This will probably be slightly faster in isolation (building a pex_binary that uses in-repo python_distributions will be able to just copy them around with less zip-file manipulation, more often, by creating packed-layout PEXes). However, the real motivation is unblocking #20670, where having this PEX built with --no-pre-install-wheels (as internal-only PEXes will, by default) is required to support downstream PEXes using that argument, at least until pex-tool/pex#2299 is fixed.

NB. there's still a separate consideration of changing how local dists are incorporated, which isn't changed or considered here: pex-tool/pex#2392 (comment)

@huonw huonw merged commit f87a8aa into main Apr 3, 2024
24 checks passed
@huonw huonw deleted the huonw/internal-only-local-dists branch April 3, 2024 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants