From patchwork Wed Dec 2 12:01:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 106962 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.34081.1796212904781886796 for ; Wed, 02 Dec 2026 04:01:45 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=SqVU0SMm; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5BFE21570 for ; Wed, 2 Dec 2026 04:01:41 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CDDCE3F7D8 for ; Wed, 2 Dec 2026 04:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796212904; bh=ehnzkhCDSjrMhgnKKllCjcB4aFO6PRSKbQfK2O/Lm30=; h=From:To:Subject:Date:From; b=SqVU0SMmqKtvV6daeK5yN2MEmAnwa9JoM9x+cCbOZVig2rdu+8rKt8i2MO4yTQqA1 tKaEFdS7twB8nU4YKXV2TYE0lj1UbyTMtrklgw1lptnWLaWHByUolmvLhkxFg4RTSD cWNYsKazKj2IfnwBFrGLS+omXO8K+oECBBp4ztbU= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/2] classes/python_pep517: use Python's unzip module to manually install wheels Date: Wed, 2 Dec 2026 12:01:37 +0000 Message-ID: <20261202120138.2924660-1-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 02 Dec 2026 12:01:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251824 Instead of using unzip, we can use the Python zipfile module to unpack the wheel. The non-bootstrap pypa/installer also uses this module, and this way we don't depend on unzip-native. Signed-off-by: Ross Burton --- meta/classes-recipe/python_pep517.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes-recipe/python_pep517.bbclass b/meta/classes-recipe/python_pep517.bbclass index a3c7d704d67..32155c718da 100644 --- a/meta/classes-recipe/python_pep517.bbclass +++ b/meta/classes-recipe/python_pep517.bbclass @@ -60,10 +60,10 @@ python_pep517_do_install () { find ${D} -path *.dist-info/RECORD -delete } -# A manual do_install that just uses unzip for bootstrapping purposes. Callers should DEPEND on unzip-native. +# A manual do_install that simply unpacks the wheel python_pep517_do_bootstrap_install () { install -d ${D}${PYTHON_SITEPACKAGES_DIR} - unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PEP517_WHEEL_PATH}/*.whl + python3 -m zipfile --extract ${PEP517_WHEEL_PATH}/*.whl ${D}${PYTHON_SITEPACKAGES_DIR} } EXPORT_FUNCTIONS do_configure do_compile do_install