From 13827fe666dd13c5facdde4ace3e79ca79d461d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 30 Nov 2023 14:01:37 +0200 Subject: [PATCH] build-python: Install a versionless python.exe in addition to python3.exe This can make it marginally easier to use it, even if the embedded Python installation isn't that much meant to be used for various external purposes. --- build-python.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build-python.sh b/build-python.sh index 9da1a7a..f6ddf25 100755 --- a/build-python.sh +++ b/build-python.sh @@ -159,4 +159,10 @@ $MAKE -j$CORES $MAKE install rm -rf $PREFIX/lib/python*/test find $PREFIX/lib/python* -name __pycache__ | xargs rm -rf + +# Provide a versionless executable as well; msys2 does something similar +# (for python3, python3w, python3-config, idle3 and pydoc3) after installing +# a Python version that is supposed to be the primary Python. +cp -a $PREFIX/bin/python3.exe $PREFIX/bin/python.exe + cd ../..