[openwrt/openwrt] build: change PYTHON to python3

LEDE Commits lede-commits at lists.infradead.org
Mon Jan 24 04:29:36 PST 2022


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/f8bc8fa3778648c31e46ff3d8c277b473f663fae

commit f8bc8fa3778648c31e46ff3d8c277b473f663fae
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Mon Jan 24 11:22:31 2022 +0100

    build: change PYTHON to python3
    
    On recent macOS, /usr/bin/python3 is a wrapper that finds the right python executable
    It checks argv[0] to determine if python2 or python3 should be called. Always execute
    it as python3 to ensure it calls the right version
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 rules.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules.mk b/rules.mk
index 57c3bca7d9..8d4f619211 100644
--- a/rules.mk
+++ b/rules.mk
@@ -274,7 +274,7 @@ BASH:=bash
 TAR:=tar
 FIND:=find
 PATCH:=patch
-PYTHON:=python
+PYTHON:=python3
 
 INSTALL_BIN:=install -m0755
 INSTALL_SUID:=install -m4755



More information about the lede-commits mailing list