From 06f21e5d7afd186d517841d73c1f234a532cf537 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Wed, 15 May 2024 15:46:32 +0200 Subject: [PATCH] Make the command for getting the Python version quite "python" is not available on my system only "python3", so this will cause output stderr even though the Makefile later checks if "python3" exist --- make/linux.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/linux.mk b/make/linux.mk index e34a0ad7..0e011672 100644 --- a/make/linux.mk +++ b/make/linux.mk @@ -11,7 +11,7 @@ # Get Python version, separate major/minor/patch, then put into wordlist -PYTHON_VERSION_=$(wordlist 2,4,$(subst ., ,$(shell python -V 2>&1))) +PYTHON_VERSION_=$(wordlist 2,4,$(subst ., ,$(shell python -V 2>/dev/null))) # Get major version from aforementioned list PYTHON_MAJOR_VERSION_=$(word 1,$(PYTHON_VERSION_))