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

Commit

Permalink
configure.ac: Warn on 'configure --with-python=3.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed May 9, 2020
1 parent ea7df3e commit ff41817
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,9 @@ AC_ARG_WITH([python],
[build and use Python 3 (default)])])

case "$with_python" in
3*) SAGE_PYTHON_VERSION=3;;
3) SAGE_PYTHON_VERSION=3;;
3*) AC_MSG_WARN([the only allowed value for --with-python is 3; specific Python 3.x versions cannot be requested using --with-python. For compatibility reasons, this is only a warning. Use './configure PYTHON3=/path/to/python3' to use a specific Python 3 binary for the Sage venv.])
SAGE_PYTHON_VERSION=3;;
"") SAGE_PYTHON_VERSION=3;;
*)
AC_MSG_ERROR([the only allowed value for --with-python is 3. Support for Python 2 has been removed in Sage 9.2.]);;
Expand Down

0 comments on commit ff41817

Please sign in to comment.