Files
qemu/tests/lcitool/mappings.yml
John Snow 047fa5b4d7 tests/lcitool: add python3 wheel and setuptools deps for qemu
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>
2026-02-23 13:24:42 -05:00

91 lines
1.4 KiB
YAML

mappings:
# Too old on Ubuntu 22.04; we install it from cargo instead
bindgen:
Ubuntu2204:
flake8:
OpenSUSELeap15:
meson:
OpenSUSELeap15:
# Use Meson from PyPI wherever Rust is enabled
Debian:
Fedora:
Ubuntu:
python3:
OpenSUSELeap15: python311-base
python3-PyYAML:
OpenSUSELeap15:
python3-devel:
OpenSUSELeap15: python311-devel
python3-docutils:
OpenSUSELeap15:
python3-numpy:
OpenSUSELeap15:
python3-opencv:
OpenSUSELeap15:
python3-pillow:
OpenSUSELeap15:
python3-pip:
OpenSUSELeap15: python311-pip
python3-pillow:
OpenSUSELeap15:
python3-selinux:
OpenSUSELeap15:
python3-setuptools:
OpenSUSELeap15: python311-setuptools
python3-sphinx:
OpenSUSELeap15:
python3-sphinx-rtd-theme:
OpenSUSELeap15:
python3-sqlite3:
OpenSUSELeap15: python311
python3-tomli:
# test using tomllib
apk:
Fedora:
Debian12:
OpenSUSELeap15:
python3-venv:
OpenSUSELeap15: python311-base
python3-wheel:
OpenSUSELeap15: python311-wheel
rust:
Debian12: rustc-web
Ubuntu2204: rustc-1.83
Ubuntu2404: rustc-1.83
pypi_mappings:
# Request more recent version
meson:
default: meson==1.8.1
# Drop packages that need devel headers
python3-numpy:
OpenSUSELeap15:
# see above
python3-tomli:
apk:
Fedora:
Debian12:
OpenSUSELeap15: