Skip to content

Commit f4b9ba5

Browse files
erikngclaude
andcommitted
Force writable perms on existing FRAMEWORKDIR
mkdir -m 777 only applies the mode to newly created directories. If /Library/ManagedFrameworks/Python already exists from a prior install with stricter perms, the un-sudo'd relocatable-python tool fails with 'Permission denied' when writing the framework. Add an explicit chmod after mkdir. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6f3e95a commit f4b9ba5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

build_python_framework_pkgs.zsh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ prepare_ci_env() {
9696
}
9797

9898
prepare_build_dirs() {
99-
/usr/bin/sudo /bin/mkdir -m 777 -p "$FRAMEWORKDIR"
99+
/usr/bin/sudo /bin/mkdir -p "$FRAMEWORKDIR"
100+
# mkdir -m only applies to newly created dirs; ensure existing dirs are writable.
101+
/usr/bin/sudo /bin/chmod 777 "$FRAMEWORKDIR"
100102
if [[ -d "$FRAMEWORKDIR/Python.framework" ]]; then
101103
/usr/bin/sudo /bin/rm -rf "$FRAMEWORKDIR/Python.framework"
102104
fi

0 commit comments

Comments
 (0)