From bb14c6783569cc47c172b3d361f854b83c022a57 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 12 Feb 2021 10:41:06 -0500 Subject: [PATCH] fix: set MACOSX_DEPLOYMENT_TARGET for BEFORE_ALL (#590) --- cibuildwheel/macos.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index e6395449..3f23a330 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -288,6 +288,7 @@ def build(options: BuildOptions) -> None: if options.before_all: log.step('Running before_all...') env = options.environment.as_dictionary(prev_environment=os.environ) + env.setdefault('MACOSX_DEPLOYMENT_TARGET', '10.9') before_all_prepared = prepare_command(options.before_all, project='.', package=options.package_dir) call([before_all_prepared], shell=True, env=env)