summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2018-05-02 05:41:15 (GMT)
committerGitHub <noreply@github.com>2018-05-02 05:41:15 (GMT)
commitfc6aa28bfd0502d994cec30bd3679b7def3be2af (patch)
tree58ef67776a9a19c584b47fb08c01f961d744fcbe /Mac
parent0dd80709b5dc03756e7f4510761ae60236bb9f6d (diff)
downloadcpython-fc6aa28bfd0502d994cec30bd3679b7def3be2af.zip
cpython-fc6aa28bfd0502d994cec30bd3679b7def3be2af.tar.gz
cpython-fc6aa28bfd0502d994cec30bd3679b7def3be2af.tar.bz2
Mitigate macOS race condition in installer build (GH-6686)
Diffstat (limited to 'Mac')
-rwxr-xr-xMac/BuildScript/build-installer.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py
index 68868d9..d2b04d1 100755
--- a/Mac/BuildScript/build-installer.py
+++ b/Mac/BuildScript/build-installer.py
@@ -1524,6 +1524,10 @@ def buildDMG():
shellQuote(os.path.join(WORKDIR, 'installer')),
shellQuote(imagepath + ".tmp.dmg" )))
+ # Try to mitigate race condition in certain versions of macOS, e.g. 10.9,
+ # when hdiutil fails with "Resource busy"
+
+ time.sleep(10)
if not os.path.exists(os.path.join(WORKDIR, "mnt")):
os.mkdir(os.path.join(WORKDIR, "mnt"))