]> granicus.if.org Git - python/commitdiff
Mitigate macOS race condition in installer build (GH-6686) (GH-6688)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 2 May 2018 05:49:03 +0000 (22:49 -0700)
committerNed Deily <nad@python.org>
Wed, 2 May 2018 05:49:03 +0000 (01:49 -0400)
(cherry picked from commit fc6aa28bfd0502d994cec30bd3679b7def3be2af)

Co-authored-by: Ned Deily <nad@python.org>
Mac/BuildScript/build-installer.py

index ef81bc147e2195094a195075196390275966274f..d76b2c096764f5a9ff0ccf02e571a1badf5e709c 100755 (executable)
@@ -1523,6 +1523,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"))