Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
only test python3, to be 3.7 or 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpase committed Sep 16, 2020
1 parent ff6f4a6 commit 64c3a8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/pkgs/python3/spkg-configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ SAGE_SPKG_CONFIGURE([python3], [
dnl Using Python 3 for Sage. Check if we can do venv with a system python3
dnl instead of building our own copy.
check_modules="sqlite3, ctypes, math, hashlib, crypt, readline, socket, zlib, distutils.core"
AC_CACHE_CHECK([for python3 >= 3.6, < 3.9 with modules $check_modules], [ac_cv_path_PYTHON3], [
AC_CACHE_CHECK([for python3 > 3.6, < 3.9 with modules $check_modules], [ac_cv_path_PYTHON3], [
AC_MSG_RESULT([])
AC_PATH_PROGS_FEATURE_CHECK([PYTHON3], [python3.8 python3.7 python3.6 python3], [
AC_PATH_PROGS_FEATURE_CHECK([PYTHON3], [python3], [
AC_MSG_CHECKING([... whether $ac_path_PYTHON3 is good])
python3_version=`"$ac_path_PYTHON3" --version 2>&1 \
| $SED -n -e 's/\([[0-9]]*\.[[0-9]]*\.[[0-9]]*\).*/\1/p'`
AS_IF([test -n "$python3_version"], [
AX_COMPARE_VERSION([$python3_version], [ge], [3.6.0], [
AX_COMPARE_VERSION([$python3_version], [ge], [3.7.0], [
AX_COMPARE_VERSION([$python3_version], [lt], [3.9.0], [
dnl Because the system python is not used directly but rather in a venv without site-packages,
dnl we test whether the module will be available in a venv.
Expand Down

0 comments on commit 64c3a8a

Please sign in to comment.