Commit 4f861441 authored by Andoni Morales Alastruey's avatar Andoni Morales Alastruey Committed by Matthew Waters
Browse files

Fix Big Sur detection

XCode's python  returns 11.0
Homebrew's python  returns 10.16

Fixes #311

Part-of: <!661>
parent 103d3366
......@@ -353,7 +353,7 @@ Terminating.''', file=sys.stderr)
elif platform == Platform.DARWIN:
distro = Distro.OS_X
ver = pplatform.mac_ver()[0]
if ver.startswith('11.0'):
if ver.startswith(('11.0', '10.16')):
distro_version = DistroVersion.OS_X_BIG_SUR
elif ver.startswith('10.15'):
distro_version = DistroVersion.OS_X_CATALINA
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment