From 059c34c34520b4c3f267fc1701de4fa6f477866f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 30 Jul 2019 15:01:07 +0530 Subject: [PATCH] Add a version check to the installer on macOS --- docs/installer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/installer.py b/docs/installer.py index f79fa3d10..fa67b1259 100644 --- a/docs/installer.py +++ b/docs/installer.py @@ -20,6 +20,10 @@ import tempfile py3 = sys.version_info[0] > 2 is64bit = platform.architecture()[0] == '64bit' is_macos = 'darwin' in sys.platform.lower() +if is_macos: + mac_ver = tuple(map(int, platform.mac_ver()[0].split('.'))) + if mac_ver[:2] < (10, 12): + raise SystemExit('Your version of macOS is too old, at least 10.12 is required') try: __file__