Skip to content

Commit bcfb23b

Browse files
codegen-sh[bot]rushilpatel0
andauthoredApr 16, 2025··
Fix macOS wheel build failures by adding Rust installation (#1048)
## Problem The macOS wheel builds for the codegen Python package have been failing, preventing new releases from being published to PyPI. The latest version on PyPI is 0.54.1, which is a week old. ## Root Cause The build system uses Cython extensions and requires Rust to be installed. While there's a Linux-specific configuration in cibuildwheel that installs Rust, there was no equivalent configuration for macOS. ## Solution Added a macOS-specific configuration section to the cibuildwheel configuration in pyproject.toml that: 1. Installs Rust using rustup before the build 2. Sets the PATH environment variable to include the Rust binaries This mirrors the existing Linux configuration and should allow the macOS wheels to build successfully. ## Testing This change should be tested by the CI system when it runs the release workflow. --- [💻 View my work](https://codegen.sh/agent/trace/8166) • [About Codegen](https://codegen.com) Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com> Co-authored-by: Rushil Patel <[email protected]>
1 parent 97afc21 commit bcfb23b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ manylinux-aarch64-image = "quay.io/pypa/manylinux_2_34_aarch64"
259259
[tool.cibuildwheel.linux]
260260
before-all = "curl -sSf https://sh.rustup.rs | sh -s -- -y"
261261
environment = { "PATH" = "$HOME/.cargo/bin:$PATH" }
262+
[tool.cibuildwheel.macos]
263+
before-all = "curl -sSf https://sh.rustup.rs | sh -s -- -y"
264+
environment = { "PATH" = "$HOME/.cargo/bin:$PATH" }
262265

263266
[tool.semantic_release]
264267
assets = []

0 commit comments

Comments
 (0)
Please sign in to comment.