From 91480efece0d6cc2ae96093d5ea39399aadd85bb Mon Sep 17 00:00:00 2001 From: Erik Gomez Date: Tue, 12 May 2026 09:49:21 -0500 Subject: [PATCH] Fix PYTHON_BASEURL format string slot count The refactor baked 'macos11' into the URL as a literal, leaving only two %s slots. relocatable-python's locallibs/get.py expects three: (version, version, os-version). The mismatch raised 'TypeError: not all arguments converted during string formatting' during framework download. Restore the third %s; --os-version 11 is already passed to the make_relocatable_python_framework.py invocation. Co-Authored-By: Claude Opus 4.7 (1M context) --- build_python_framework_pkgs.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_python_framework_pkgs.zsh b/build_python_framework_pkgs.zsh index 1a0d6e0..0d185c6 100755 --- a/build_python_framework_pkgs.zsh +++ b/build_python_framework_pkgs.zsh @@ -16,7 +16,7 @@ MP_SHA="bbd07730d1b93ed3828246575ef5676bba74b5d1" # munki/munki-pkg TYPE="recommended" FRAMEWORKDIR="/Library/ManagedFrameworks/Python" PYTHON_BIN_NEW="$FRAMEWORKDIR/Python3.framework/Versions/Current/Resources/Python.app/Contents/MacOS/Python" -PYTHON_BASEURL="https://www.python.org/ftp/python/%s/python-%s-macos11.pkg" +PYTHON_BASEURL="https://www.python.org/ftp/python/%s/python-%s-macos%s.pkg" TOOLSDIR="$(/usr/bin/dirname "$0")" OUTPUTSDIR="$TOOLSDIR/outputs" RP_BINDIR="/tmp/relocatable-python"