Skip to content

Commit

Permalink
Fix install on macOS Big Sur (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartleyg committed Dec 14, 2020
1 parent ae376fd commit c15f3b2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,9 @@ def _configure_cxx_standard(self):
cxx_standards = [year for year in cxx_standards if year < 17]

if sys.platform == 'darwin':
_, minor_version, _ = [
int(i) for i in platform.mac_ver()[0].split('.')
]
if minor_version < 14:
major_version = int(platform.mac_ver()[0].split('.')[0])
minor_version = int(platform.mac_ver()[0].split('.')[1])
if major_version <= 10 and minor_version < 14:
cxx_standards = [year for year in cxx_standards if year < 17]

for year in cxx_standards:
Expand Down

0 comments on commit c15f3b2

Please sign in to comment.