Skip to content

Commit 8e3d90c

Browse files
miss-islingtonjmrootned-deily
authored
[3.11] gh-111015: Install IDLE.app and Python Launcher.app on macOS with correct permissions (gh-111038)
(cherry picked from commit cb1bf89) Co-authored-by: Joshua Root <[email protected]> Co-authored-by: Ned Deily <[email protected]>
1 parent 4e4a3e1 commit 8e3d90c

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Mac/Makefile.in

+2
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ install_IDLE:
260260
rm "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" ; \
261261
fi
262262
touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
263+
chmod -R ugo+rX,go-w "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
264+
chmod ugo+x "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/MacOS/IDLE"
263265

264266
$(INSTALLED_PYTHONAPP): install_Python
265267

Mac/PythonLauncher/Makefile.in

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ install: Python\ Launcher.app
2727
-test -d "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
2828
/bin/cp -r "Python Launcher.app" "$(DESTDIR)$(PYTHONAPPSDIR)"
2929
touch "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
30+
chmod -R ugo+rX,go-w "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
31+
chmod ugo+x "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app/Contents/MacOS/Python Launcher"
3032

3133
clean:
3234
rm -f *.o "Python Launcher"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ensure that IDLE.app and Python Launcher.app are installed with appropriate permissions on macOS builds.

0 commit comments

Comments
 (0)