On 19/01/2026 22.27, John Snow wrote:
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 <[email protected]>
---
  .gitlab-ci.d/cirrus/freebsd-14.vars     | 2 +-
  .gitlab-ci.d/cirrus/macos-14.vars       | 2 +-
  .gitlab-ci.d/windows.yml                | 2 ++
  tests/docker/dockerfiles/alpine.docker  | 2 ++
  tests/docker/dockerfiles/centos9.docker | 2 ++
  tests/lcitool/projects/qemu.yml         | 2 ++
  tests/vm/generated/freebsd.json         | 2 ++
  7 files changed, 12 insertions(+), 2 deletions(-)

Reviewed-by: Thomas Huth <[email protected]>


Reply via email to