From f25f2fb3aad3d28e8d2282fc089fae980c5b672d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 16 Jan 2026 13:46:37 +0200 Subject: [PATCH] build-python: Update to Python 3.13.11 --- .github/workflows/build.yml | 2 +- build-llvm.sh | 4 +--- build-python.sh | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2343960..53d88b8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,7 +54,7 @@ jobs: run: | echo LLVM_VERSION=$(git ls-remote https://github.com/llvm/llvm-project.git | grep 'refs/heads/main$' | awk '{print $1}') >> $GITHUB_OUTPUT echo MINGW_W64_VERSION=$(git ls-remote https://github.com/mingw-w64/mingw-w64.git | grep 'refs/heads/master$' | awk '{print $1}') >> $GITHUB_OUTPUT - echo PYTHON_VERSION_MINGW=$(git ls-remote https://github.com/msys2-contrib/cpython-mingw.git | grep 'refs/heads/mingw-v3.12.9$' | awk '{print $1}') >> $GITHUB_OUTPUT + echo PYTHON_VERSION_MINGW=$(git ls-remote https://github.com/msys2-contrib/cpython-mingw.git | grep 'refs/heads/mingw-v3.13.11$' | awk '{print $1}') >> $GITHUB_OUTPUT cat $GITHUB_OUTPUT cat $GITHUB_OUTPUT >> parameters.txt - uses: actions/upload-artifact@v4 diff --git a/build-llvm.sh b/build-llvm.sh index 1256dc0..d702266 100755 --- a/build-llvm.sh +++ b/build-llvm.sh @@ -248,9 +248,7 @@ if [ -n "$HOST" ]; then BUILDDIR=$BUILDDIR-$HOST if [ -n "$WITH_PYTHON" ] && [ -n "$TARGET_WINDOWS" ]; then - # The python3-config script requires executing with bash. It outputs - # an extra trailing space, which the extra 'echo' layer gets rid of. - EXT_SUFFIX="$(echo $(bash $PREFIX/python/bin/python3-config --extension-suffix))" + EXT_SUFFIX="$(python3 $PREFIX/python/bin/python3-config --extension-suffix)" PYTHON_RELATIVE_PATH="$(cd "$PREFIX" && echo python/lib/python*/site-packages)" PYTHON_INCLUDE_DIR="$(echo $PREFIX/python/include/python*)" PYTHON_LIB="$(echo $PREFIX/python/lib/libpython3.*.dll.a)" diff --git a/build-python.sh b/build-python.sh index a5f1450..15058e6 100755 --- a/build-python.sh +++ b/build-python.sh @@ -17,8 +17,8 @@ set -e : ${LIBFFI_VERSION:=v3.4.7} -: ${PYTHON_VERSION:=v3.12.9} -: ${PYTHON_VERSION_MINGW:=1b241aa8572ee8cd4131fffca838b6bbdf5a7b5e} +: ${PYTHON_VERSION:=v3.13.11} +: ${PYTHON_VERSION_MINGW:=bbd33f429f50c5aca3d830cabe5324a499754752} unset HOST