One function
add_platforms in pypa/auditwheel
The author described this change as “fix: prevent duplicate Root-Is-Purelib in WHEEL metadata (#686)”. It counts as a record because the check below fails on the code as it stood at a5ed316e6 and passes on 6d5abcbb7, with nothing else changed between the two runs.
Projectpypa/auditwheel
Fix saved2026-03-28
Sharing licenceMIT · LICENSE
Change size+1 −0
What the code was meant to do, written into the code itself as a docstring
Add platform tags `platforms` to a wheel Add any platform tags in `platforms` that are missing to wheel_ctx's filename and `WHEEL` file. Parameters ---------- wheel_ctx : InWheelCtx An open wheel context platforms : list platform tags to add to wheel filename and WHEEL tags - e.g. `('macosx_10_9_intel', 'macosx_10_9_x86_64') remove_platforms : iterable platform tags to remove to the wheel filename and WHEEL tags, e.g. `('linux_x86_64',)` when `('manylinux_x86_64')`` is added
The change
| 80 | 80 | info.add_header("Tag", tag) | |
| 81 | 81 | ||
| 82 | 82 | if definitely_not_purelib: | |
| 83 | + | del info["Root-Is-Purelib"] | |
| 83 | 84 | info["Root-Is-Purelib"] = "False" | |
| 84 | 85 | logger.info("Changed wheel type to Platlib") | |
| 85 | 86 |
The check that tells the two apart
fail→pass·tests/unit/test_wheeltools.py::test_add_platforms_no_duplicate_root_is_purelib
Check file tests/unit/test_wheeltools.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before ita5ed316e688b8851df357baf25d042a3d15d86de
Broken version dated2026-03-17
Moduleauditwheel.wheeltools
Units changedadd_platforms
Fingerprint89d9452c3a240fbb
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in pypa/auditwheel
- 2025-04-05InTemporaryDirectory
- 2022-01-08dir2zip