From bd1adf2505f62fcdcdcfed3a28772bf9589c0102 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 31 Dec 2020 13:37:57 +0000 Subject: [PATCH] Prefer to use our own python3 if available --- setup/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/functions.sh b/setup/functions.sh index ddc8b9e..82d0b5f 100644 --- a/setup/functions.sh +++ b/setup/functions.sh @@ -350,7 +350,7 @@ function build_python() { local pkgdir="${PAWPAW_BUILDDIR}/${name}-${version}" local python=python3 - if ! which python3 > /dev/null; then + if [ ! -e "${PAWPAW_PREFIX}/bin/python3" ] && ! which python3 > /dev/null; then python=python fi