Skip to content

Commit cb1bf89

Browse files
jmrootned-deily
andauthored
gh-111015: Install IDLE.app and Python Launcher.app on macOS with correct permissions (gh-111016)
Co-authored-by: Ned Deily <[email protected]>
1 parent 3156d19 commit cb1bf89

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
@@ -257,6 +257,8 @@ install_IDLE:
257257
rm "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" ; \
258258
fi
259259
touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
260+
chmod -R ugo+rX,go-w "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
261+
chmod ugo+x "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/MacOS/IDLE"
260262

261263
$(INSTALLED_PYTHONAPP): install_Python
262264

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)