diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-05-01 22:50:12 -0700 |
---|---|---|
committer | Ned Deily <nad@python.org> | 2018-05-02 01:50:12 -0400 |
commit | 5818f0896257c51654ce3efce9abad63e12db037 (patch) | |
tree | 95076b28c683c4087cf96aad5d22259a787573b5 /Mac | |
parent | 07ad02f62cc336772e12e3fd837579952b03ca57 (diff) | |
download | cpython-git-5818f0896257c51654ce3efce9abad63e12db037.tar.gz |
Mitigate macOS race condition in installer build (GH-6686) (#6689)
(cherry picked from commit fc6aa28bfd0502d994cec30bd3679b7def3be2af)
Co-authored-by: Ned Deily <nad@python.org>
Diffstat (limited to 'Mac')
-rwxr-xr-x | Mac/BuildScript/build-installer.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py index 7875bc8ef4..038e1917c4 100755 --- a/Mac/BuildScript/build-installer.py +++ b/Mac/BuildScript/build-installer.py @@ -1530,6 +1530,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")) |