]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-111015: Install IDLE.app and Python Launcher.app on macOS with correct...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 18 Oct 2023 13:32:09 +0000 (15:32 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Oct 2023 13:32:09 +0000 (13:32 +0000)
(cherry picked from commit cb1bf89c4066f30c80f7d1193b586a2ff8c40579)

Co-authored-by: Joshua Root <jmr@macports.org>
Co-authored-by: Ned Deily <nad@python.org>
Mac/Makefile.in
Mac/PythonLauncher/Makefile.in
Misc/NEWS.d/next/macOS/2023-10-18-01-40-36.gh-issue-111015.NaLI2L.rst [new file with mode: 0644]

index 69ab4198988570d5fd074e2ba345f24fc9130332..92b3328c07e574b17ba6a2ec7d5c270d24c143e2 100644 (file)
@@ -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
 
index 4c05f26e8358bc3f235cb1c3c4d10f43a606597d..9decadbdc60f00dfa7bc120f96f6c472f06cfdbe 100644 (file)
@@ -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"
diff --git a/Misc/NEWS.d/next/macOS/2023-10-18-01-40-36.gh-issue-111015.NaLI2L.rst b/Misc/NEWS.d/next/macOS/2023-10-18-01-40-36.gh-issue-111015.NaLI2L.rst
new file mode 100644 (file)
index 0000000..4c6eea1
--- /dev/null
@@ -0,0 +1 @@
+Ensure that IDLE.app and Python Launcher.app are installed with appropriate permissions on macOS builds.