From: Anthony PERARD Date: Mon, 20 Jan 2020 11:50:51 +0000 (+0000) Subject: automation: Only build QEMU if Python >= 3.5 X-Git-Tag: 4.14.0-rc1~707 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d25b3ef3f9a32162d24fa3e84a9a38f035a1487c;p=xen.git automation: Only build QEMU if Python >= 3.5 Recent version of QEMU will not build anymore if Python < 3.5. That is, QEMU 4.3 not released yet. That check would also prevent the GitLab CI from building QEMU if python3 binary isn't present. Signed-off-by: Anthony PERARD Acked-by: Doug Goldstein --- diff --git a/automation/scripts/build b/automation/scripts/build index 83c44e6ce7..0cd0f3971d 100755 --- a/automation/scripts/build +++ b/automation/scripts/build @@ -28,8 +28,8 @@ if [[ "${CC}" == "clang"* ]]; then cfgargs+=("--disable-stubdom") fi -# Qemu requires Python 2.7 or later -if python -c "import sys; res = sys.version_info < (2, 7); exit(not(res))"; then +# Qemu requires Python 3.5 or later +if ! type python3 || python3 -c "import sys; res = sys.version_info < (3, 5); exit(not(res))"; then cfgargs+=("--with-system-qemu=/bin/false") fi