summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-18 13:32:09 (GMT)
committerGitHub <noreply@github.com>2023-10-18 13:32:09 (GMT)
commit228b12493286a7cb959438cd5b1a018e0afb17a8 (patch)
treee8dcd4f9cdd820686594899ed9e6b9b9a8f55a9d
parentb8ce5d9c172c7c78b4e97a37f76abae48fb71ef5 (diff)
downloadcpython-228b12493286a7cb959438cd5b1a018e0afb17a8.zip
cpython-228b12493286a7cb959438cd5b1a018e0afb17a8.tar.gz
cpython-228b12493286a7cb959438cd5b1a018e0afb17a8.tar.bz2
[3.12] gh-111015: Install IDLE.app and Python Launcher.app on macOS with correct permissions (gh-111037)
(cherry picked from commit cb1bf89c4066f30c80f7d1193b586a2ff8c40579) Co-authored-by: Joshua Root <jmr@macports.org> Co-authored-by: Ned Deily <nad@python.org>
-rw-r--r--Mac/Makefile.in2
-rw-r--r--Mac/PythonLauncher/Makefile.in2
-rw-r--r--Misc/NEWS.d/next/macOS/2023-10-18-01-40-36.gh-issue-111015.NaLI2L.rst1
3 files changed, 5 insertions, 0 deletions
diff --git a/Mac/Makefile.in b/Mac/Makefile.in
index 69ab419..92b3328 100644
--- a/Mac/Makefile.in
+++ b/Mac/Makefile.in
@@ -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
diff --git a/Mac/PythonLauncher/Makefile.in b/Mac/PythonLauncher/Makefile.in
index 4c05f26..9decadb 100644
--- a/Mac/PythonLauncher/Makefile.in
+++ b/Mac/PythonLauncher/Makefile.in
@@ -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
index 0000000..4c6eea1
--- /dev/null
+++ b/Misc/NEWS.d/next/macOS/2023-10-18-01-40-36.gh-issue-111015.NaLI2L.rst
@@ -0,0 +1 @@
+Ensure that IDLE.app and Python Launcher.app are installed with appropriate permissions on macOS builds.