From nobody Sun Apr 12 05:58:49 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1771450587; cv=none; d=zohomail.com; s=zohoarc; b=iLY2TNu+W1edd6/ybn2yGns8tfzB9Et6+vzQbcKgenXAirnsmnjExsfjq89zUN6Juy8qtlRvuBk91Xtdpsl7sItTJeU+RX3JZbHC/vbjRzFrkl/W9QH+XznDIA37KR6IOiFasjLsBNdWMwpMYRZArPBGfSB/6me9KFqRJ4o1M0o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771450587; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=0/pDrkLOSnsXiiEThhq+YwcxEW0ZrxovllkSCayyhvY=; b=elGzCeCZYTjyn+XPs115yTWs0sM0A8LCesZKaS3rw+//9SRp51FWDEXH0PJYpCd+up7aMhsmsfnerXYpD/HSkZNTGfjnvfLzQEeTfrG2xnp4snBvfgNu5Cal+HQgiPiF4eRg5Hd2/BNsNjy4Sh6NHIcm92rQsvyIw1OJlRlZQ0U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1771450587351701.5356606581449; Wed, 18 Feb 2026 13:36:27 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vspD7-0000fT-4G; Wed, 18 Feb 2026 16:35:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vspD5-0000Zp-FT for qemu-devel@nongnu.org; Wed, 18 Feb 2026 16:35:51 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vspD3-0002Gx-IA for qemu-devel@nongnu.org; Wed, 18 Feb 2026 16:35:51 -0500 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-57-MJoTty4ZP4WQcbFIvxtKdw-1; Wed, 18 Feb 2026 16:35:44 -0500 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D0D2A180034D; Wed, 18 Feb 2026 21:35:41 +0000 (UTC) Received: from jsnow-thinkpadp16vgen1.westford.csb (unknown [10.22.65.233]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5E86619560B5; Wed, 18 Feb 2026 21:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1771450548; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0/pDrkLOSnsXiiEThhq+YwcxEW0ZrxovllkSCayyhvY=; b=Kf5zfDTTF2lRtdndGouBE2HcgQDxS+i3gMXNkH4QuUh8aVZ3HU/+PYnZaE14IbA9jduWrD U7yhRZ9/Jevk5iNExvXfH9cQ2ncOwYBGYP3/iW5SPxlx+VdlHbHa0f9gf8k8RzFAxkLJfI Pjrd8yVZvh+Ud6TDpNL+41YD+lpYMEw= X-MC-Unique: MJoTty4ZP4WQcbFIvxtKdw-1 X-Mimecast-MFC-AGG-ID: MJoTty4ZP4WQcbFIvxtKdw_1771450542 From: John Snow To: qemu-devel@nongnu.org Cc: Kevin Wolf , Warner Losh , Mauro Carvalho Chehab , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , qemu-block@nongnu.org, =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Fabiano Rosas , John Snow , Michael Roth , Pierrick Bouvier , Markus Armbruster , Peter Xu , Yonggang Luo , Hanna Reitz , Maksim Davydov , Thomas Huth , Ed Maste , Alexandre Iooss , Cleber Rosa , Li-Wen Hsu , Mahmoud Mandour , Kyle Evans , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Vladimir Sementsov-Ogievskiy Subject: [PATCH v8 11/20] tests/lcitool: add python3 wheel and setuptools deps for qemu Date: Wed, 18 Feb 2026 16:34:06 -0500 Message-ID: <20260218213416.674483-12-jsnow@redhat.com> In-Reply-To: <20260218213416.674483-1-jsnow@redhat.com> References: <20260218213416.674483-1-jsnow@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.043, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1771450588606154100 Content-Type: text/plain; charset="utf-8" Installing local dependencies while offline, without PyPI access, requires the python3-setuptools and python3-wheel packages. Most distributions have these available anyway for one reason or another, but not all of them. If you are asking yourself "Wait, aren't these packages guaranteed via installation of pip, via the ensurepip module, which mkvenv takes immense pains to provide for us?" - Well... since Python 3.13, "pip" does not actually come with "setuptools" or "wheel" anymore, and so if we want to build and install a python package, we actually need these available in the host environment. (Note that you don't need these packages just to install a pre-built package, you only need them to *build* a package. With cutting edge setuptools and pip, all locally installed packages, even in editable mode, must be "built" first before being installed. Thus, these dependencies are being added specifically to facilitate installing qemu.git/python/qemu to the configure-time venv.) Signed-off-by: John Snow Reviewed-by: Thomas Huth --- .gitlab-ci.d/cirrus/freebsd-14.vars | 2 +- .gitlab-ci.d/windows.yml | 2 ++ tests/docker/dockerfiles/alpine.docker | 2 ++ tests/docker/dockerfiles/centos9.docker | 2 ++ tests/docker/dockerfiles/opensuse-leap.docker | 1 + tests/lcitool/mappings.yml | 2 +- tests/lcitool/projects/qemu.yml | 2 ++ tests/vm/generated/freebsd.json | 2 ++ tests/vm/haiku.x86_64 | 2 ++ tests/vm/netbsd | 1 + tests/vm/openbsd | 3 +++ 11 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.d/cirrus/freebsd-14.vars b/.gitlab-ci.d/cirrus/free= bsd-14.vars index 6477440ef30..98fbde6cc64 100644 --- a/.gitlab-ci.d/cirrus/freebsd-14.vars +++ b/.gitlab-ci.d/cirrus/freebsd-14.vars @@ -11,6 +11,6 @@ MAKE=3D'/usr/local/bin/gmake' NINJA=3D'/usr/local/bin/ninja' PACKAGING_COMMAND=3D'pkg' PIP3=3D'/usr/local/bin/pip' -PKGS=3D'alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache4 cmocka cor= eutils ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext g= it glib gmake gnutls gsed gtk-vnc gtk3 json-c libepoxy libffi libgcrypt lib= jpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson = mtools ncurses nettle ninja opencv pixman pkgconf png py311-numpy py311-pil= low py311-pip py311-pyyaml py311-sphinx py311-sphinx_rtd_theme py311-tomli = python3 rpm2cpio rust rust-bindgen-cli sdl2 sdl2_image snappy sndio socat s= pice-protocol tesseract usbredir virglrenderer vte3 vulkan-tools xorriso zs= td' +PKGS=3D'alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache4 cmocka cor= eutils ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext g= it glib gmake gnutls gsed gtk-vnc gtk3 json-c libepoxy libffi libgcrypt lib= jpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson = mtools ncurses nettle ninja opencv pixman pkgconf png py311-numpy py311-pil= low py311-pip py311-pyyaml py311-setuptools py311-sphinx py311-sphinx_rtd_t= heme py311-tomli py311-wheel python3 rpm2cpio rust rust-bindgen-cli sdl2 sd= l2_image snappy sndio socat spice-protocol tesseract usbredir virglrenderer= vte3 vulkan-tools xorriso zstd' PYPI_PKGS=3D'' PYTHON=3D'/usr/local/bin/python3' diff --git a/.gitlab-ci.d/windows.yml b/.gitlab-ci.d/windows.yml index 5ef4d34d1ea..145500ae464 100644 --- a/.gitlab-ci.d/windows.yml +++ b/.gitlab-ci.d/windows.yml @@ -89,6 +89,8 @@ msys2-64bit: mingw-w64-x86_64-pkgconf mingw-w64-x86_64-python mingw-w64-x86_64-python-certifi + mingw-w64-x86_64-python-setuptools + mingw-w64-x86_64-python-wheel mingw-w64-x86_64-rust mingw-w64-x86_64-rust-bindgen mingw-w64-x86_64-zstd" diff --git a/tests/docker/dockerfiles/alpine.docker b/tests/docker/dockerfi= les/alpine.docker index 76d8dd8cfc7..c0303feb48a 100644 --- a/tests/docker/dockerfiles/alpine.docker +++ b/tests/docker/dockerfiles/alpine.docker @@ -87,8 +87,10 @@ RUN apk update && \ py3-numpy \ py3-pillow \ py3-pip \ + py3-setuptools \ py3-sphinx \ py3-sphinx_rtd_theme \ + py3-wheel \ py3-yaml \ python3 \ rpm2cpio \ diff --git a/tests/docker/dockerfiles/centos9.docker b/tests/docker/dockerf= iles/centos9.docker index 90ac1f7fade..6b1aa6dc0de 100644 --- a/tests/docker/dockerfiles/centos9.docker +++ b/tests/docker/dockerfiles/centos9.docker @@ -101,9 +101,11 @@ RUN dnf --quiet distro-sync -y && \ python3-numpy \ python3-pillow \ python3-pip \ + python3-setuptools \ python3-sphinx \ python3-sphinx_rtd_theme \ python3-tomli \ + python3-wheel \ rdma-core-devel \ rust \ rust-std-static \ diff --git a/tests/docker/dockerfiles/opensuse-leap.docker b/tests/docker/d= ockerfiles/opensuse-leap.docker index a041d439768..d693f2c6f85 100644 --- a/tests/docker/dockerfiles/opensuse-leap.docker +++ b/tests/docker/dockerfiles/opensuse-leap.docker @@ -98,6 +98,7 @@ RUN zypper update -y && \ python311-base \ python311-pip \ python311-setuptools \ + python311-wheel \ rdma-core-devel \ rust \ rust-bindgen \ diff --git a/tests/lcitool/mappings.yml b/tests/lcitool/mappings.yml index a749cf8c515..60618971584 100644 --- a/tests/lcitool/mappings.yml +++ b/tests/lcitool/mappings.yml @@ -66,7 +66,7 @@ mappings: OpenSUSELeap15: python311-base =20 python3-wheel: - OpenSUSELeap15: python311-pip + OpenSUSELeap15: python311-wheel =20 rust: Debian12: rustc-web diff --git a/tests/lcitool/projects/qemu.yml b/tests/lcitool/projects/qemu.= yml index 1ee7dcf3d46..5e34e953514 100644 --- a/tests/lcitool/projects/qemu.yml +++ b/tests/lcitool/projects/qemu.yml @@ -98,11 +98,13 @@ packages: - python3-pillow - python3-pip - python3-PyYAML + - python3-setuptools - python3-sphinx - python3-sphinx-rtd-theme - python3-sqlite3 - python3-tomli - python3-venv + - python3-wheel - rpm2cpio - rust - rust-std diff --git a/tests/vm/generated/freebsd.json b/tests/vm/generated/freebsd.j= son index f586827b136..08b6eb61553 100644 --- a/tests/vm/generated/freebsd.json +++ b/tests/vm/generated/freebsd.json @@ -57,9 +57,11 @@ "py311-pillow", "py311-pip", "py311-pyyaml", + "py311-setuptools", "py311-sphinx", "py311-sphinx_rtd_theme", "py311-tomli", + "py311-wheel", "python3", "rpm2cpio", "rust", diff --git a/tests/vm/haiku.x86_64 b/tests/vm/haiku.x86_64 index 529283c39f6..3ea48dc38a1 100755 --- a/tests/vm/haiku.x86_64 +++ b/tests/vm/haiku.x86_64 @@ -80,6 +80,8 @@ class HaikuVM(basevm.BaseVM): "ninja", "pip", "tomli_python310", + "wheel_python310", + "setuptools_python310", ] =20 BUILD_SCRIPT =3D """ diff --git a/tests/vm/netbsd b/tests/vm/netbsd index 77d17a0dedf..b365045066c 100755 --- a/tests/vm/netbsd +++ b/tests/vm/netbsd @@ -31,6 +31,7 @@ class NetBSDVM(basevm.BaseVM): "pkgconf", "xz", "python313", + "py313-wheel", "ninja-build", =20 # gnu tools diff --git a/tests/vm/openbsd b/tests/vm/openbsd index 2ea86a01bad..5222041b855 100755 --- a/tests/vm/openbsd +++ b/tests/vm/openbsd @@ -60,6 +60,9 @@ class OpenBSDVM(basevm.BaseVM): =20 # libs: networking "libslirp", + + # Python stuff + "py3-setuptools", ] =20 BUILD_SCRIPT =3D """ --=20 2.53.0