OSDN Git Service

mkvenv: add --diagnose option to explain "ensure" failures
authorJohn Snow <jsnow@redhat.com>
Thu, 11 May 2023 03:54:15 +0000 (23:54 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 May 2023 06:53:51 +0000 (08:53 +0200)
commit4695a22e9adb0c9a96465109a17da10c17cf2a67
tree89495aa376df1e4557e75b28beacceab0da8016f
parentc5538eed12e2e427e3715b39cca46c00afcde78d
mkvenv: add --diagnose option to explain "ensure" failures

This is a routine that is designed to print some usable info for human
beings back out to the terminal if/when "mkvenv ensure" fails to locate
or install a package during configure time, such as meson or sphinx.

Since we are requiring that "meson" and "sphinx" are installed to the
same Python environment as QEMU is configured to build with, this can
produce some surprising failures when things are mismatched. This method
is here to try and ease that sting by offering some actionable
diagnosis.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20230511035435.734312-8-jsnow@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
python/scripts/mkvenv.py