Skip to content

Commit 5818f08

Browse files
Mitigate macOS race condition in installer build (pythonGH-6686) (python#6689)
(cherry picked from commit fc6aa28) Co-authored-by: Ned Deily <[email protected]>
1 parent 07ad02f commit 5818f08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Mac/BuildScript/build-installer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,10 @@ def buildDMG():
15301530
shellQuote(os.path.join(WORKDIR, 'installer')),
15311531
shellQuote(imagepath + ".tmp.dmg" )))
15321532

1533+
# Try to mitigate race condition in certain versions of macOS, e.g. 10.9,
1534+
# when hdiutil fails with "Resource busy"
1535+
1536+
time.sleep(10)
15331537

15341538
if not os.path.exists(os.path.join(WORKDIR, "mnt")):
15351539
os.mkdir(os.path.join(WORKDIR, "mnt"))

0 commit comments

Comments
 (0)