[Bug translator/34959] New: python: pip can't install the cross-built HelperSDT wheel (not a supported wheel on this platform)
jaipaul.cheernam at est dot tech
sourceware-bugzilla@sourceware.org
Thu Nov 5 10:42:27 GMT 2026
https://sourceware.org/bugzilla/show_bug.cgi?id=34959
Bug ID: 34959
Summary: python: pip can't install the cross-built HelperSDT
wheel (not a supported wheel on this platform)
Product: systemtap
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: translator
Assignee: systemtap at sourceware dot org
Reporter: jaipaul.cheernam at est dot tech
Target Milestone: ---
Cross compiling systemtap with --with-python3-probes for a 32-bit target on
a 64-bit host fails in do_install:
ERROR: helpersdt-0.1.0-cp315-cp315-linux_i686.whl is not a supported wheel
on this platform.
python/Makefile.am builds the wheel and then installs it with pip:
$(PYTHON3) -m pip install .../py3build/*.whl \
$(if $(DESTDIR),--root $(DESTDIR)) --prefix $(prefix) ...
The wheel is cross-built, so it is tagged for the target (linux_i686), but
$(PYTHON3) is the native build interpreter. pip checks the wheel's platform
tag against the interpreter running it and refuses a wheel built for a
different platform, so the install can't proceed.
This went unnoticed until recently: older setuptools tagged the wheel with
the host platform, which matched native pip, so it installed despite the
tag being wrong. setuptools >= 84.2 tags it with the real target platform,
which is correct but no longer matches native pip. HEAD is still affected.
A simple fix is to install with pypa "installer" instead of pip. It just
unpacks the wheel and doesn't check the platform tag, which is what you want
for a wheel you built yourself moments ago. It also doesn't write
direct_url.json and, with --compile-bytecode=0, no build-path .pyc files, so
the direct_url.json/RECORD cleanup from PR34652 is no longer needed:
$(PYTHON3) -m installer --compile-bytecode=0 \
$(if $(DESTDIR),--destdir $(DESTDIR)) --prefix $(prefix) \
.../py3build/*.whl
Found while bumping setuptools to 84.2.1 in OpenEmbedded (it is not specific
to any Python version). Verified there on a core2-32/i686 build: install and
packaging QA pass and the i386 HelperSDT module installs correctly.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list