]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/lcitool: add python3 wheel and setuptools deps for qemu
authorJohn Snow <jsnow@redhat.com>
Wed, 18 Feb 2026 21:34:06 +0000 (16:34 -0500)
committerJohn Snow <jsnow@redhat.com>
Mon, 23 Feb 2026 18:24:42 +0000 (13:24 -0500)
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.)

Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20260218213416.674483-12-jsnow@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
.gitlab-ci.d/cirrus/freebsd-14.vars
.gitlab-ci.d/windows.yml
tests/docker/dockerfiles/alpine.docker
tests/docker/dockerfiles/centos9.docker
tests/docker/dockerfiles/opensuse-leap.docker
tests/lcitool/mappings.yml
tests/lcitool/projects/qemu.yml
tests/vm/generated/freebsd.json
tests/vm/haiku.x86_64
tests/vm/netbsd
tests/vm/openbsd

index 6477440ef30f0e5909333d1c824afd73e9116660..98fbde6cc6466a980f90c5c7b4180ab0d147bb33 100644 (file)
@@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake'
 NINJA='/usr/local/bin/ninja'
 PACKAGING_COMMAND='pkg'
 PIP3='/usr/local/bin/pip'
-PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache4 cmocka coreutils ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk-vnc gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson mtools ncurses nettle ninja opencv pixman pkgconf png py311-numpy py311-pillow py311-pip py311-pyyaml py311-sphinx py311-sphinx_rtd_theme py311-tomli python3 rpm2cpio rust rust-bindgen-cli sdl2 sdl2_image snappy sndio socat spice-protocol tesseract usbredir virglrenderer vte3 vulkan-tools xorriso zstd'
+PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache4 cmocka coreutils ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk-vnc gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson mtools ncurses nettle ninja opencv pixman pkgconf png py311-numpy py311-pillow py311-pip py311-pyyaml py311-setuptools py311-sphinx py311-sphinx_rtd_theme py311-tomli py311-wheel python3 rpm2cpio rust rust-bindgen-cli sdl2 sdl2_image snappy sndio socat spice-protocol tesseract usbredir virglrenderer vte3 vulkan-tools xorriso zstd'
 PYPI_PKGS=''
 PYTHON='/usr/local/bin/python3'
index 5ef4d34d1eab48ae7c9c661500abdfcab17b931c..145500ae464a8fa1fc321ff82c84f1d6239ae30b 100644 (file)
@@ -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"
index 76d8dd8cfc7612a5d5c419f6577a0d98c4b3ecd9..c0303feb48ab27d453a9495bd6138ba3df385df7 100644 (file)
@@ -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 \
index 90ac1f7fade55504de355bc2f866f7fe853f49be..6b1aa6dc0de7d72c423a9222fa496f6b070e1aea 100644 (file)
@@ -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 \
index a041d43976815103995875d81bf1af5868070c90..d693f2c6f8579143bcdc1787907fac727b742ef8 100644 (file)
@@ -98,6 +98,7 @@ RUN zypper update -y && \
            python311-base \
            python311-pip \
            python311-setuptools \
+           python311-wheel \
            rdma-core-devel \
            rust \
            rust-bindgen \
index a749cf8c5153590897f6d3ed2d8c6da9acb6f21f..606189715849f7ab7f5ae595ac5c37f09d1f7469 100644 (file)
@@ -66,7 +66,7 @@ mappings:
     OpenSUSELeap15: python311-base
 
   python3-wheel:
-    OpenSUSELeap15: python311-pip
+    OpenSUSELeap15: python311-wheel
 
   rust:
     Debian12: rustc-web
index 1ee7dcf3d46e6eff486635c88b64ab15d3803298..5e34e95351443e07eba27df7afb1ada542f9e26d 100644 (file)
@@ -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
index f586827b13641a21fea9e7839c17ac2d435c0804..08b6eb6155335bb12cfebda31a851278bf60fe72 100644 (file)
     "py311-pillow",
     "py311-pip",
     "py311-pyyaml",
+    "py311-setuptools",
     "py311-sphinx",
     "py311-sphinx_rtd_theme",
     "py311-tomli",
+    "py311-wheel",
     "python3",
     "rpm2cpio",
     "rust",
index 529283c39f660dda579ac73a282f9de88edaf41b..3ea48dc38a1d0e7dc1776e72325d0192b2fa0be4 100755 (executable)
@@ -80,6 +80,8 @@ class HaikuVM(basevm.BaseVM):
         "ninja",
         "pip",
         "tomli_python310",
+        "wheel_python310",
+        "setuptools_python310",
     ]
 
     BUILD_SCRIPT = """
index 77d17a0dedf222e7d38284ea4b46806a3ae481c8..b365045066c20718ceef45dfc795d485c9ac2d2e 100755 (executable)
@@ -31,6 +31,7 @@ class NetBSDVM(basevm.BaseVM):
         "pkgconf",
         "xz",
         "python313",
+        "py313-wheel",
         "ninja-build",
 
         # gnu tools
index 2ea86a01bad35a604b37454d5bd5e443d163cf65..5222041b855828ee88a34293a262fb81894f7ebc 100755 (executable)
@@ -60,6 +60,9 @@ class OpenBSDVM(basevm.BaseVM):
 
         # libs: networking
         "libslirp",
+
+        # Python stuff
+        "py3-setuptools",
     ]
 
     BUILD_SCRIPT = """