diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-06-25 10:56:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-25 10:56:52 (GMT) |
commit | bdc55eb55f7a88e374593dea1257566c2db3f5e4 (patch) | |
tree | b8c1eff94f30e22900bec151419ee787cae17583 /Mac/BuildScript | |
parent | e9dafe7c93d67fe4df6e0e23088f8f25c90f2bed (diff) | |
download | cpython-bdc55eb55f7a88e374593dea1257566c2db3f5e4.zip cpython-bdc55eb55f7a88e374593dea1257566c2db3f5e4.tar.gz cpython-bdc55eb55f7a88e374593dea1257566c2db3f5e4.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/BuildScript')
-rwxr-xr-x | Mac/BuildScript/scripts/postflight.documentation | 4 |
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 |