[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/10] configure: Add courtesy hint to Python version failure mes
From: |
Paolo Bonzini |
Subject: |
[PATCH 10/10] configure: Add courtesy hint to Python version failure message |
Date: |
Wed, 22 Feb 2023 15:37:52 +0100 |
From: John Snow <jsnow@redhat.com>
If we begin requiring Python 3.7+, a few platforms are going to need to
install an additional Python interpreter package.
As a courtesy to the user, suggest the optional package they might need
to install. This will hopefully minimize any downtime caused by the
change in Python dependency.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230221012456.2607692-3-jsnow@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
configure | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 476d8a38b900..87d0b3ee817c 100755
--- a/configure
+++ b/configure
@@ -1070,7 +1070,10 @@ fi
if ! check_py_version "$python"; then
error_exit "Cannot use '$python', Python >= 3.7 is required." \
- "Use --python=/path/to/python to specify a supported Python."
+ "Use --python=/path/to/python to specify a supported Python." \
+ "Maybe try:" \
+ " openSUSE Leap 15.3+: zypper install python39" \
+ " CentOS 8: dnf install python38"
fi
# Suppress writing compiled files
--
2.39.1
- Re: [PATCH 08/10] ci, docker: update CentOS and OpenSUSE Python to non-EOL versions, (continued)