From e8d4809bc57deac3714b1bc950031b3fa2483a41 Mon Sep 17 00:00:00 2001 From: Moritz Lell Date: Sun, 27 Oct 2019 14:19:25 +0100 Subject: [PATCH] Remove python interpreter selection --- redo/clean.do | 2 +- redo/whichpython.do | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/redo/clean.do b/redo/clean.do index 72d16b1..3306003 100644 --- a/redo/clean.do +++ b/redo/clean.do @@ -1,2 +1,2 @@ redo version/clean -rm -f whichpython python py *.pyc */*.pyc +rm -f python py *.pyc */*.pyc diff --git a/redo/whichpython.do b/redo/whichpython.do index d5c54bb..02c5545 100644 --- a/redo/whichpython.do +++ b/redo/whichpython.do @@ -1,10 +1,8 @@ exec >&2 -for py in intentionally-missing python2.7 python2 python; do +for py in intentionally-missing python python3 python2 python2.7; do echo "Trying: $py" cmd=$(command -v "$py" || true) - # intentionally using the 'print statement' (as opposed to print - # function) here, to rule out any python3 interpreters - out=$($cmd -c 'print "success"' 2>/dev/null) || true + out=$($cmd -c 'print("success")' 2>/dev/null) || true if [ "$out" = "success" ]; then echo $cmd >$3 exit 0