Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC Commits: d48ebc23 by Cheng Shao at 2025-09-16T14:59:18-04:00 autoconf: emit warning instead of error for FIND_PYTHON logic This patch makes FIND_PYTHON logic emit warning instead of error, so when the user doesn't expect to run the testsuite driver (especially when installing a bindist), python would not be mandatory. Fixes #26347. - - - - - 1 changed file: - m4/find_python.m4 Changes: ===================================== m4/find_python.m4 ===================================== @@ -17,7 +17,7 @@ AC_DEFUN([FIND_PYTHON],[ dnl If still not found, hard error: we require Python >= 3.7 AS_IF([test -z "$PYTHON"], [ - AC_MSG_ERROR([Python 3.7 or later is required but no python interpreter was found. Please install Python >= 3.7 and re-run configure.]) + AC_MSG_WARN([Python 3.7 or later is required but no python interpreter was found. This is needed by the testsuite driver.]) ]) dnl Query the version string (X.Y.Z) of the selected interpreter @@ -31,10 +31,10 @@ AC_DEFUN([FIND_PYTHON],[ dnl Enforce minimum version 3.7.0 AS_IF([test -z "$PythonVersion"], [ - AC_MSG_ERROR([Failed to determine Python version for $PYTHON]) + AC_MSG_WARN([Failed to determine Python version for $PYTHON]) ]) FP_COMPARE_VERSIONS([$PythonVersion], [-lt], [3.7.0], [ - AC_MSG_ERROR([Python 3.7 or later is required, but $PYTHON reports $PythonVersion]) + AC_MSG_WARN([Python 3.7 or later is required, but $PYTHON reports $PythonVersion]) ]) dnl Canonicalise path for Windows View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d48ebc2359ec3b6c612c00ae51aca80a... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d48ebc2359ec3b6c612c00ae51aca80a... You're receiving this email because of your account on gitlab.haskell.org.