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
This commit is contained in:
Kristian Sloth Lauszus 2024-05-15 15:46:32 +02:00
parent 4499982f99
commit 06f21e5d7a
1 changed files with 1 additions and 1 deletions

View File

@ -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_))