Skip to content

THRIFT-5955 Require C extension in Python wheels#3621

Open
vitaly-zdanevich wants to merge 1 commit into
apache:masterfrom
vitaly-zdanevich:codex/publish-aarch64-python-wheels
Open

THRIFT-5955 Require C extension in Python wheels#3621
vitaly-zdanevich wants to merge 1 commit into
apache:masterfrom
vitaly-zdanevich:codex/publish-aarch64-python-wheels

Conversation

@vitaly-zdanevich

@vitaly-zdanevich vitaly-zdanevich commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Keep cibuildwheel release builds from falling back to a pure-Python wheel when the fastbinary C extension fails to compile.
  • Leave the upstream PyPI wheel workflow intact; it already builds manylinux aarch64 wheels after the rebase.

Why

THRIFT-5955 is about published Linux arm64 wheels. The current upstream workflow now builds those wheels, and this PR adds a safety guard so release wheel jobs fail fast instead of uploading incomplete binary artifacts if the extension build fails.

Validation

  • Parsed .github/workflows/pypi.yml with Ruby YAML.
  • Ran python setup.py sdist --dist-dir /tmp/thrift-py-dist.
  • Ran CIBUILDWHEEL=1 CXX=false python setup.py build_ext --force and verified it fails with the new guard.
  • Ran git diff --check HEAD^ HEAD.

Not my cup of tea - asked Codex to do it.

@mergeable mergeable Bot added python github_actions Pull requests that update GitHub Actions code labels Jul 4, 2026
@vitaly-zdanevich vitaly-zdanevich marked this pull request as ready for review July 4, 2026 22:41
Keep cibuildwheel release builds from silently falling back to pure-Python wheels when the fastbinary C extension fails to compile.

The upstream PyPI workflow already builds manylinux aarch64 wheels; this guard makes those release wheels fail fast instead of publishing incomplete binary artifacts.

Co-authored-by: OpenAI ChatGPT <noreply@openai.com>
@vitaly-zdanevich vitaly-zdanevich marked this pull request as draft July 4, 2026 22:45
@vitaly-zdanevich vitaly-zdanevich force-pushed the codex/publish-aarch64-python-wheels branch from de65d8f to c334760 Compare July 4, 2026 22:46
@vitaly-zdanevich vitaly-zdanevich changed the title THRIFT-5955 Publish aarch64 Python wheels THRIFT-5955 Require C extension in Python wheels Jul 4, 2026
@vitaly-zdanevich vitaly-zdanevich marked this pull request as ready for review July 4, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant