summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2019-10-08 01:59:33 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2019-10-07 23:59:33 -0700
commit72d8febc4eb889f51378ebf5b9b4b2f9dd0f5ea1 (patch)
treee33d8f7b85e10778d9f1719363a6131dcca52d92
parent9600eb4f5a81cc090c08935456fb66de79da120c (diff)
downloadspack-72d8febc4eb889f51378ebf5b9b4b2f9dd0f5ea1.tar.gz
spack-72d8febc4eb889f51378ebf5b9b4b2f9dd0f5ea1.tar.bz2
spack-72d8febc4eb889f51378ebf5b9b4b2f9dd0f5ea1.tar.xz
spack-72d8febc4eb889f51378ebf5b9b4b2f9dd0f5ea1.zip
Add macOS Catalina support (#13070)
-rw-r--r--lib/spack/spack/operating_systems/mac_os.py34
1 files changed, 22 insertions, 12 deletions
diff --git a/lib/spack/spack/operating_systems/mac_os.py b/lib/spack/spack/operating_systems/mac_os.py
index 7ebd1ce8d2..2f98c0cd79 100644
--- a/lib/spack/spack/operating_systems/mac_os.py
+++ b/lib/spack/spack/operating_systems/mac_os.py
@@ -32,19 +32,29 @@ class MacOs(OperatingSystem):
"""
def __init__(self):
- """ Autodetects the mac version from a dictionary. Goes back as
- far as 10.6 snowleopard. If the user has an older mac then
- the version will just be a generic mac_os.
+ """Autodetects the mac version from a dictionary.
+
+ If the mac version is too old or too new for Spack to recognize,
+ will use a generic "macos" version string until Spack is updated.
"""
- mac_releases = {'10.6': "snowleopard",
- "10.7": "lion",
- "10.8": "mountainlion",
- "10.9": "mavericks",
- "10.10": "yosemite",
- "10.11": "elcapitan",
- "10.12": "sierra",
- "10.13": "highsierra",
- "10.14": "mojave"}
+ mac_releases = {
+ '10.0': 'cheetah',
+ '10.1': 'puma',
+ '10.2': 'jaguar',
+ '10.3': 'panther',
+ '10.4': 'tiger',
+ '10.5': 'leopard',
+ '10.6': 'snowleopard',
+ '10.7': 'lion',
+ '10.8': 'mountainlion',
+ '10.9': 'mavericks',
+ '10.10': 'yosemite',
+ '10.11': 'elcapitan',
+ '10.12': 'sierra',
+ '10.13': 'highsierra',
+ '10.14': 'mojave',
+ '10.15': 'catalina',
+ }
mac_ver = str(macos_version().up_to(2))
name = mac_releases.get(mac_ver, "macos")