[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/7] configure: Add nice hint to Python failure message
From: |
John Snow |
Subject: |
[PATCH 4/7] configure: Add nice hint to Python failure message |
Date: |
Thu, 9 Feb 2023 10:40:31 -0500 |
If we begin requiring Python 3.7+, a few platforms are going to need to
install an additional package.
This is at least mildly annoying to the user (and I hate negative
attention), so solve the user's problem for them before they get a
chance to become irritated while searching on Google for how to install
newer Python packages.
Signed-off-by: John Snow <jsnow@redhat.com>
---
configure | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index ea8c973d13b..bf512273f44 100755
--- a/configure
+++ b/configure
@@ -1058,7 +1058,10 @@ fi
if ! check_py_version "$python"; then
error_exit "Cannot use '$python', Python >= 3.6 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.0
- Re: [PATCH 6/7] CI: Stop building docs on centos8, (continued)
[PATCH 7/7] Python: Drop support for Python 3.6, John Snow, 2023/02/09
[PATCH 4/7] configure: Add nice hint to Python failure message,
John Snow <=
[PATCH 5/7] testing: Add Python >= 3.7 to Centos, OpenSuSE, John Snow, 2023/02/09
[PATCH 2/7] Python: drop pipenv, John Snow, 2023/02/09