summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2017-10-12 20:41:57 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2017-10-12 11:41:57 -0700
commit1b53e82348b94105fa1ee01409a27970831de0f7 (patch)
tree3ca84e58c1a734f7086b92e39640e4b68945ead6 /lib
parent0dad5b3ee517692ddb0afb32cb0e031d3ec4d78d (diff)
downloadspack-1b53e82348b94105fa1ee01409a27970831de0f7.tar.gz
spack-1b53e82348b94105fa1ee01409a27970831de0f7.tar.bz2
spack-1b53e82348b94105fa1ee01409a27970831de0f7.tar.xz
spack-1b53e82348b94105fa1ee01409a27970831de0f7.zip
various fixes for macOS high sierra (#5647)
* various fixes for macOS high sierra * add macOS_version() helper function * flake8 fixes * update oce and trilinos * fix bison
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/operating_systems/mac_os.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/spack/spack/operating_systems/mac_os.py b/lib/spack/spack/operating_systems/mac_os.py
index 6c02ba5528..52a26bc69a 100644
--- a/lib/spack/spack/operating_systems/mac_os.py
+++ b/lib/spack/spack/operating_systems/mac_os.py
@@ -24,6 +24,14 @@
##############################################################################
import platform as py_platform
from spack.architecture import OperatingSystem
+from spack.version import *
+
+
+# FIXME: store versions inside OperatingSystem as a Version instead of string
+def macOS_version():
+ """temporary workaround to return a macOS version as a Version object
+ """
+ return Version('.'.join(py_platform.mac_ver()[0].split('.')[:2]))
class MacOs(OperatingSystem):
@@ -44,7 +52,8 @@ class MacOs(OperatingSystem):
"10.9": "mavericks",
"10.10": "yosemite",
"10.11": "elcapitan",
- "10.12": "sierra"}
+ "10.12": "sierra",
+ "10.13": "highsierra"}
mac_ver = '.'.join(py_platform.mac_ver()[0].split('.')[:2])
name = mac_releases.get(mac_ver, "macos")