Skip to content

Commit

Permalink
Add macOS big sur compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiix committed Dec 6, 2020
1 parent 4a09d77 commit 825e635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/setup.py
Expand Up @@ -207,7 +207,7 @@ def get_option_from_sys_argv(option_str):
# C++ projects must now migrate to libc++ and are recommended to set a
# deployment target of macOS 10.9 or later, or iOS 7 or later.
if sys.platform == 'darwin':
mac_target = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')
mac_target = str(sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET'))
if mac_target and (pkg_resources.parse_version(mac_target) <
pkg_resources.parse_version('10.9.0')):
os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.9'
Expand Down

0 comments on commit 825e635

Please sign in to comment.