mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Mitigate macOS race condition in installer build (GH-6686)
This commit is contained in:
parent
0dd80709b5
commit
fc6aa28bfd
1 changed files with 4 additions and 0 deletions
|
@ -1524,6 +1524,10 @@ def buildDMG():
|
||||||
shellQuote(os.path.join(WORKDIR, 'installer')),
|
shellQuote(os.path.join(WORKDIR, 'installer')),
|
||||||
shellQuote(imagepath + ".tmp.dmg" )))
|
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")):
|
if not os.path.exists(os.path.join(WORKDIR, "mnt")):
|
||||||
os.mkdir(os.path.join(WORKDIR, "mnt"))
|
os.mkdir(os.path.join(WORKDIR, "mnt"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue