diff --git a/pyproject.toml b/pyproject.toml index d805eaffb..96e9652d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,6 @@ before-build = "ccache -s" environment-pass = ["HOST_CCACHE_DIR"] [tool.cibuildwheel.macos] -# Don't repair macOS wheels -repair-wheel-command = "" -before-all = "brew deps --tree --installed" \ No newline at end of file +before-all = "brew deps --tree --installed" +# Repair macOS wheels (include libpng with the wheel, for example) +repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v --ignore-missing-dependencies {wheel}" \ No newline at end of file