summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-09-21 02:25:23 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2016-09-20 17:25:23 -0700
commit27801c354be7e05bca1b3fd68468db1d2728376b (patch)
treec851cf3fab372891482fce5c67c42457c20770e9 /lib
parent25ee9456f535eee7aadc7ea1f24b8064569328a7 (diff)
downloadspack-27801c354be7e05bca1b3fd68468db1d2728376b.tar.gz
spack-27801c354be7e05bca1b3fd68468db1d2728376b.tar.bz2
spack-27801c354be7e05bca1b3fd68468db1d2728376b.tar.xz
spack-27801c354be7e05bca1b3fd68468db1d2728376b.zip
fix MacOs class for Sierra (#1811)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/operating_systems/mac_os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/operating_systems/mac_os.py b/lib/spack/spack/operating_systems/mac_os.py
index 3e5ab9b2e9..dafb5c1d41 100644
--- a/lib/spack/spack/operating_systems/mac_os.py
+++ b/lib/spack/spack/operating_systems/mac_os.py
@@ -22,7 +22,7 @@ class MacOs(OperatingSystem):
"10.11": "elcapitan",
"10.12": "sierra"}
- mac_ver = py_platform.mac_ver()[0][:-2]
+ mac_ver = '.'.join(py_platform.mac_ver()[0].split('.')[:2])
name = mac_releases.get(mac_ver, "macos")
super(MacOs, self).__init__(name, mac_ver)