Mitigate macOS race condition in installer build (GH-6686)
authorNed Deily <nad@python.org>
Wed, 2 May 2018 05:41:15 +0000 (01:41 -0400)
committerGitHub <noreply@github.com>
Wed, 2 May 2018 05:41:15 +0000 (01:41 -0400)
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"))