projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dd8070
)
Mitigate macOS race condition in installer build (GH-6686)
author
Ned Deily
<nad@python.org>
Wed, 2 May 2018 05:41:15 +0000
(
01:41
-0400)
committer
GitHub
<noreply@github.com>
Wed, 2 May 2018 05:41:15 +0000
(
01:41
-0400)
Mac/BuildScript/build-installer.py
patch
|
blob
|
history
diff --git
a/Mac/BuildScript/build-installer.py
b/Mac/BuildScript/build-installer.py
index 68868d97a65c43ec0f4f2c35722d0c47493c58ad..d2b04d163ab4dcadf0c66e74a36249093467e92f 100755
(executable)
--- a/
Mac/BuildScript/build-installer.py
+++ b/
Mac/BuildScript/build-installer.py
@@
-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"))