summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-06-25 10:56:14 (GMT)
committerGitHub <noreply@github.com>2020-06-25 10:56:14 (GMT)
commit4564ebb1e62378d350d5483b0ae5d0d84082af2b (patch)
treef710ac26a8fe45babfb20c2f524fb956723c6584 /Mac
parent8127daba89468b1c3063a2f2765362bbce7cb746 (diff)
downloadcpython-4564ebb1e62378d350d5483b0ae5d0d84082af2b.zip
cpython-4564ebb1e62378d350d5483b0ae5d0d84082af2b.tar.gz
cpython-4564ebb1e62378d350d5483b0ae5d0d84082af2b.tar.bz2
bpo-39580: add check for CLI installation on macOS (GH-20271)
Adds a simple check for whether or not the package is being installed in the GUI or using installer on the command line. This addresses an issue where CLI-based software management tools (such as Munki) unexpectedly open Finder windows into a GUI session during installation runs. (cherry picked from commit 5f190d2cc60cd82a604cbffb58b6ca8f40350a7a) Co-authored-by: Rick Heil <rickheil@partnersandsimons.com>
Diffstat (limited to 'Mac')
-rwxr-xr-xMac/BuildScript/scripts/postflight.documentation4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mac/BuildScript/scripts/postflight.documentation b/Mac/BuildScript/scripts/postflight.documentation
index 3cbbc1b..ec48599 100755
--- a/Mac/BuildScript/scripts/postflight.documentation
+++ b/Mac/BuildScript/scripts/postflight.documentation
@@ -12,7 +12,9 @@ SHARE_DOCDIR_TO_FWK="../../.."
# make link in /Applications/Python m.n/ for Finder users
if [ -d "${APPDIR}" ]; then
ln -fhs "${FWK_DOCDIR}/index.html" "${APPDIR}/Python Documentation.html"
- open "${APPDIR}" || true # open the applications folder
+ if [ "${COMMAND_LINE_INSTALL}" != 1 ]; then
+ open "${APPDIR}" || true # open the applications folder
+ fi
fi
# make share/doc link in framework for command line users