]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Mitigate macOS race condition in installer build (GH-6686) (#6689)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 2 May 2018 05:50:12 +0000 (22:50 -0700)
committerNed Deily <nad@python.org>
Wed, 2 May 2018 05:50:12 +0000 (01:50 -0400)
(cherry picked from commit fc6aa28bfd0502d994cec30bd3679b7def3be2af)

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

index 7875bc8ef419f900e90a95c1432447110fa1606e..038e1917c4e1e3651b1376c21ff1c1b83db32596 100755 (executable)
@@ -1530,6 +1530,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"))