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

Since we no longer use wheel code, remove it. #2302

Merged
merged 2 commits into from
Dec 14, 2023

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Dec 14, 2023

Lots of changes over a long time have led to this point. The last small
one is in this change, installing wheel in the vendored Pip venv just in
time when wheel building is required by using vendored Pip itself and
the user configured indexes, etc.

Lots of changes over a long time have led to this point. The last small
one is in this change, installing wheel in the vendored Pip venv just in
time when wheel building is required by using vendored Pip itself and
the user configured indexes, etc.
@jsirois jsirois requested review from kaos, benjyw and huonw December 14, 2023 19:56
@@ -641,20 +641,11 @@ def _prepare_bootstrap(self):
# although we don't use pyparsing directly, packaging.markers, which we
# do use at runtime, does.
root_module_names = ["attr", "packaging", "pkg_resources", "pyparsing"]
include_dist_info = set()
if self._pex_info.includes_tools:
# The `repository extract` tool needs setuptools and wheel to build sdists and wheels
Copy link
Member Author

@jsirois jsirois Dec 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is covered by pre-existing tests and was made untrue by the commits that made way for Python 3.12 support this summer (See: https://github.com/pantsbuild/pex/pull/2172/files#diff-7f155c6651ad8c550123265bf6297eee5e5074ba2152a8c99c6f6128b7e58103R52-L267). The savings in no longer vendoring these both for the Pex PEX (which --includes-tools) can be seen in this comparison of end products:

$ du -sh released/* dist/*
4.1M    released/pex
2.9M    released/pex-2.1.154-py2.py3-none-any.whl
3.9M    released/pex-2.1.154.tar.gz
3.6M    dist/pex
2.8M    dist/pex-2.1.154-py2.py3-none-any.whl
3.9M    dist/pex-2.1.154.tar.gz

@jsirois jsirois merged commit 8a6fe31 into pex-tool:main Dec 14, 2023
24 checks passed
@jsirois jsirois deleted the vendored_wheel/eliminate branch December 14, 2023 21:15
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.

2 participants