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

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

index 68868d97a65c43ec0f4f2c35722d0c47493c58ad..d2b04d163ab4dcadf0c66e74a36249093467e92f 100755 (executable)
@@ -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"))