Skip to content

Publish Linux wheels for x86_64 only; keep source distribution for non-x86 local builds#2

Merged
Desperadus merged 4 commits intomasterfrom
copilot/update-pypi-wheel-handling
Mar 9, 2026
Merged

Publish Linux wheels for x86_64 only; keep source distribution for non-x86 local builds#2
Desperadus merged 4 commits intomasterfrom
copilot/update-pypi-wheel-handling

Conversation

Copy link

Copilot AI commented Mar 9, 2026

This updates Python packaging so PyPI only serves prebuilt binary wheels for x86_64. ARM/aarch64 users will no longer receive a precompiled wheel and will instead fall back to local build from source via pip.

  • Release workflow scope

    • Removed multi-arch wheel matrix entries for Linux publishing.
    • Set wheel build target explicitly to x86_64.
  • Source-build fallback for unsupported architectures

    • Added maturin sdist output to the release artifacts.
    • publish job still uploads dist/*, now including both x86_64 wheel(s) and sdist, enabling pip source install on aarch64.
  • Net effect

    • x86_64: prebuilt wheel with bundled binary.
    • aarch64: no ARM wheel on PyPI; install path is local compilation from sdist.
- name: Build wheel
  uses: PyO3/maturin-action@v1
  with:
    target: x86_64
    args: --release --out dist
    manylinux: auto

- name: Build source distribution
  uses: PyO3/maturin-action@v1
  with:
    command: sdist
    args: --out dist

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI and others added 3 commits March 9, 2026 21:02
Co-authored-by: Desperadus <73285347+Desperadus@users.noreply.github.com>
Co-authored-by: Desperadus <73285347+Desperadus@users.noreply.github.com>
Co-authored-by: Desperadus <73285347+Desperadus@users.noreply.github.com>
Copilot AI changed the title [WIP] Update PyPI wheel builds for x86 and aarch64 behavior Publish Linux wheels for x86_64 only; keep source distribution for non-x86 local builds Mar 9, 2026
@Desperadus Desperadus marked this pull request as ready for review March 9, 2026 21:07
@Desperadus Desperadus merged commit bbba5b2 into master Mar 9, 2026
@Desperadus Desperadus deleted the copilot/update-pypi-wheel-handling branch March 9, 2026 21:07
Desperadus added a commit that referenced this pull request Mar 9, 2026
Publish Linux wheels for x86_64 only; keep source distribution for
non-x86 local builds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants