]> git.proxmox.com Git - mirror_qemu.git/commit
mkvenv: use pip's vendored distlib as a fallback
authorJohn Snow <jsnow@redhat.com>
Tue, 16 May 2023 07:05:51 +0000 (09:05 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 May 2023 06:53:51 +0000 (08:53 +0200)
commit68ea6d17fe531e383394573251359ab4f99f7091
treef96c0e8f5d282d58ec9afcb6c02e9e946ff25c53
parent928348949d1d04f67715fa7125e7e1fa3ff40f7c
mkvenv: use pip's vendored distlib as a fallback

distlib is usually not installed on Linux distribution, but it is vendored
into pip.  Because the virtual environment has pip via ensurepip, we
can piggy-back on pip's vendored version.  This could break if they move
our cheese in the future, but the fix would be simply to require distlib.

If it is debundled, as it is on msys, it is simply available directly.

Signed-off-by: John Snow <jsnow@redhat.com>
[Move to toplevel. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
python/scripts/mkvenv.py
python/setup.cfg