diff --git a/python/setup.py b/python/setup.py index a9df075e7becd..5fbef995f7295 100755 --- a/python/setup.py +++ b/python/setup.py @@ -186,6 +186,9 @@ def get_option_from_sys_argv(option_str): extra_compile_args.append('-Wno-invalid-offsetof') extra_compile_args.append('-Wno-sign-compare') + if sys.platform == 'darwin': + os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.9' + # https://github.com/Theano/Theano/issues/4926 if sys.platform == 'win32': extra_compile_args.append('-D_hypot=hypot')