Skip to content

Commit 91480ef

Browse files
erikngclaude
andcommitted
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) <noreply@anthropic.com>
1 parent 560b0b4 commit 91480ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build_python_framework_pkgs.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ MP_SHA="bbd07730d1b93ed3828246575ef5676bba74b5d1" # munki/munki-pkg
1616
TYPE="recommended"
1717
FRAMEWORKDIR="/Library/ManagedFrameworks/Python"
1818
PYTHON_BIN_NEW="$FRAMEWORKDIR/Python3.framework/Versions/Current/Resources/Python.app/Contents/MacOS/Python"
19-
PYTHON_BASEURL="https://www.python.org/ftp/python/%s/python-%s-macos11.pkg"
19+
PYTHON_BASEURL="https://www.python.org/ftp/python/%s/python-%s-macos%s.pkg"
2020
TOOLSDIR="$(/usr/bin/dirname "$0")"
2121
OUTPUTSDIR="$TOOLSDIR/outputs"
2222
RP_BINDIR="/tmp/relocatable-python"

0 commit comments

Comments
 (0)