diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-05-02 05:49:03 (GMT) |
---|---|---|
committer | Ned Deily <nad@python.org> | 2018-05-02 05:49:03 (GMT) |
commit | fb646219e9ec673d267d264b34c25fe96dc12844 (patch) | |
tree | 3f5fdfde1c3dcba12c8770776e5155c287f56c0e /Mac/BuildScript | |
parent | 8ac441876418a217c31fe429733d7fa4704f0e3c (diff) | |
download | cpython-fb646219e9ec673d267d264b34c25fe96dc12844.zip cpython-fb646219e9ec673d267d264b34c25fe96dc12844.tar.gz cpython-fb646219e9ec673d267d264b34c25fe96dc12844.tar.bz2 |
Mitigate macOS race condition in installer build (GH-6686) (GH-6688)
(cherry picked from commit fc6aa28bfd0502d994cec30bd3679b7def3be2af)
Co-authored-by: Ned Deily <nad@python.org>
Diffstat (limited to 'Mac/BuildScript')
-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 ef81bc1..d76b2c0 100755 --- a/Mac/BuildScript/build-installer.py +++ b/Mac/BuildScript/build-installer.py @@ -1523,6 +1523,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")) |