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

Commit

Permalink
build/bin/sage-system-python: Try python first
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 18, 2020
1 parent e2dcdee commit 1d36a2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/bin/sage-system-python
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ fi
#
# See https://trac.sagemath.org/ticket/29090

PYTHONS="python3 python3.8 python3.7 python2.7 python python3.6 python2"
# Trac #29890: Our first choice is "python", not "python3". This is to avoid
# a defect of sage_bootstrap on macOS regarding SSL URLs.
PYTHONS="python python3 python3.8 python3.7 python2.7 python3.6 python2"
for PY in $PYTHONS; do
PYTHON="$(PATH="$SAGE_ORIG_PATH" command -v $PY)"
if [[ -n "$PYTHON" ]]; then
Expand Down

0 comments on commit 1d36a2e

Please sign in to comment.