test.wheeldata includes bundled setuptools and wheel wheels to build packages. Since setuptools>=0.70.1, the bdist_wheel method is natively included in setuptools, and there's no necessity to have the wheel library available, to build wheels any more.
Relatedly, wheel>=0.46.0 de-vendored the packaging library, so current versions of wheel can't be used without having packaging available too.
Adding/updating binary artefacts increases the repository size, with little observable/user benefit in this case (a test file). It might be easier just to do the update though, we will probably see more 'update' PRs (such as @hroncok's #132867, which I imagine was inadvertant -- it took me a couple of minutes to find this issue again).
changed the title [-]Setuptools now includes bdist_wheel[/-][+]Update bundled setupotools in `test.wheeldata` and remove `wheel.whl`[/+]on Apr 24, 2025
Since we would like to update our wheel and we already updated setuptools to a version that does not require wheel to create wheels, I was wondering whether we could update setuptools in https://github.com/python/cpython/tree/main/Lib/test/wheeldata to 70.1+ and drop the wheel.whl. That would make it easier for us to update.
Activity
AA-Turner commented on Apr 11, 2025
Do tests fail with different versions of wheel installed? I'm trying to work out if this is just a cosmetic change.
stefanor commented on Apr 12, 2025
With the new setuptools, wheel isn't used any more, so bumping it or not makes no difference.
AA-Turner commented on Apr 24, 2025
Adding/updating binary artefacts increases the repository size, with little observable/user benefit in this case (a test file). It might be easier just to do the update though, we will probably see more 'update' PRs (such as @hroncok's #132867, which I imagine was inadvertant -- it took me a couple of minutes to find this issue again).
A
hroncok commented on Apr 24, 2025
Sorry for the duplicate issue and PR. I did not find this one.
Here is my rationale from #132866
In Fedora, we use our own setuptools and wheel wheels from WHEEL_PKG_DIR to test Python.
wheel 0.45+ now depends on packaging pypa/wheel#655
Since we would like to update our wheel and we already updated setuptools to a version that does not require wheel to create wheels, I was wondering whether we could update setuptools in https://github.com/python/cpython/tree/main/Lib/test/wheeldata to 70.1+ and drop the wheel.whl. That would make it easier for us to update.
AA-Turner commented on Apr 24, 2025
Ok. I've opened a new PR, as wheeldata isn't covered by the ensurepip tooling, and also to use a newer release. See #132887.
A
gh-132415: Update vendored setuptools in ``Lib/test/wheeldata`` (#132887
hroncok commented on Apr 25, 2025
Thanks
00666: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
Revert "pythongh-132415: Update vendored setuptools in ``Lib/test/whe…
14 remaining items
pythongh-132415: Use shutil.which() in missing_compiler_executable() (p…
[3.13] gh-132415: Update vendored setuptools in ``Lib/test/wheeldata`` (
[3.12] gh-132415: Use shutil.which() in missing_compiler_executable() (…
[3.12] pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
[3.12] gh-132415: Update vendored setuptools in ``Lib/test/wheeldata` (…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
[3.13] pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…
00460: pythongh-132415: Update vendored setuptools in ``Lib/test/whee…