diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/operating_systems/mac_os.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/operating_systems/mac_os.py b/lib/spack/spack/operating_systems/mac_os.py index a95640ec8a..7ebd1ce8d2 100644 --- a/lib/spack/spack/operating_systems/mac_os.py +++ b/lib/spack/spack/operating_systems/mac_os.py @@ -14,7 +14,7 @@ from spack.util.executable import Executable def macos_version(): """temporary workaround to return a macOS version as a Version object """ - return Version('.'.join(py_platform.mac_ver()[0].split('.')[:2])) + return Version(py_platform.mac_ver()[0]) def macos_sdk_path(): @@ -46,7 +46,7 @@ class MacOs(OperatingSystem): "10.13": "highsierra", "10.14": "mojave"} - mac_ver = '.'.join(py_platform.mac_ver()[0].split('.')[:2]) + mac_ver = str(macos_version().up_to(2)) name = mac_releases.get(mac_ver, "macos") super(MacOs, self).__init__(name, mac_ver) |