Skip to content

Drop redundant wheel from the build deps#3

Open
webknjaz wants to merge 2 commits into
hotsyk:mainfrom
webknjaz:patch-1
Open

Drop redundant wheel from the build deps#3
webknjaz wants to merge 2 commits into
hotsyk:mainfrom
webknjaz:patch-1

Conversation

@webknjaz
Copy link
Copy Markdown

This is a mistake based on an incorrectly added example in the setuptools docs that I've since corrected upstream. It still makes its way into people's projects years after.

Originally, wheel was being auto-injected as a build dep when building wheels (not just sdist) through the corresponding PEP 517 hook in setuptools. Two years ago, at the PyCon US Sprints, Alex's moved the respective wheel interface right into setuptools and it's no longer pulled in when constructing the build env as it's now vendored.

webknjaz added 2 commits May 15, 2026 14:40
This is a mistake based on an incorrectly added example in the `setuptools` docs that I've since corrected upstream. It still makes its way into people's projects years after.

Originally, `wheel` was being auto-injected as a build dep when building wheels (not just sdist) through the corresponding PEP 517 hook in `setuptools`. Two years ago, at the PyCon US Sprints, Alex's moved the respective `wheel` interface right into `setuptools` and it's no longer pulled in when constructing the build env as it's now vendored.

Signed-off-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <webknjaz@redhat.com>
Signed-off-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <webknjaz@redhat.com>
return env_dir / "bin" / "python"


def _bootstrap_build_backend(python_bin: Path) -> None:
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Though, you could really just use pypa/build for this w/o manual venv management. Or even just a pip install --no-deps which would've built an sdist first and then wheel from sdist (not from Git like you're doing now — this isn't what happens in real envs).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

FWIW, I've got https://github.com/re-actors/checkout-python-sdist for testing from sdist in CI, just like what the downstreams would do.

@webknjaz webknjaz moved this to 🏌️🚗💨 Drive-bys 🪽🐦‍🔥🦸🫡🤝🤲🍀🍃 in 📅 Procrastinating in public 😵‍💫 May 15, 2026
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