Skip to content

Commit 50903bf

Browse files
Mitigate macOS race condition in installer build (GH-6686) (GH-6687)
(cherry picked from commit fc6aa28) Co-authored-by: Ned Deily <nad@python.org>
1 parent 1470e43 commit 50903bf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Mac/BuildScript/build-installer.py

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

1527+
# Try to mitigate race condition in certain versions of macOS, e.g. 10.9,
1528+
# when hdiutil fails with "Resource busy"
1529+
1530+
time.sleep(10)
15271531

15281532
if not os.path.exists(os.path.join(WORKDIR, "mnt")):
15291533
os.mkdir(os.path.join(WORKDIR, "mnt"))

0 commit comments

Comments
 (0)