Skip to content

Commit

Permalink
[3.12] gh-111015: Install IDLE.app and Python Launcher.app on macOS w…
Browse files Browse the repository at this point in the history
…ith correct permissions (gh-111037)

(cherry picked from commit cb1bf89)

Co-authored-by: Joshua Root <jmr@macports.org>
Co-authored-by: Ned Deily <nad@python.org>
  • Loading branch information
3 people authored Oct 18, 2023
1 parent b8ce5d9 commit 228b124
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Mac/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ install_IDLE:
rm "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" ; \
fi
touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
chmod -R ugo+rX,go-w "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
chmod ugo+x "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/MacOS/IDLE"

$(INSTALLED_PYTHONAPP): install_Python

Expand Down
2 changes: 2 additions & 0 deletions Mac/PythonLauncher/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ install: Python\ Launcher.app
-test -d "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
/bin/cp -r "Python Launcher.app" "$(DESTDIR)$(PYTHONAPPSDIR)"
touch "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
chmod -R ugo+rX,go-w "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
chmod ugo+x "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app/Contents/MacOS/Python Launcher"

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

0 comments on commit 228b124

Please sign in to comment.