]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-111015: Install IDLE.app and Python Launcher.app on macOS with correct permissions...
authorJoshua Root <jmr@macports.org>
Wed, 18 Oct 2023 13:02:36 +0000 (00:02 +1100)
committerGitHub <noreply@github.com>
Wed, 18 Oct 2023 13:02:36 +0000 (14:02 +0100)
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 78b4499cca986ad32441133a5c35653fd96e25e9..32e3a0f55c5d7170fd7e833d9f0088340a590fe0 100644 (file)
@@ -257,6 +257,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.