Skip to content

Fix Linux wheel test: build on manylinux_2_28 - #17

Merged
OVVO-Financial merged 2 commits into
mainfrom
claude/intelligent-johnson-6ctwxv
Jun 14, 2026
Merged

Fix Linux wheel test: build on manylinux_2_28#17
OVVO-Financial merged 2 commits into
mainfrom
claude/intelligent-johnson-6ctwxv

Conversation

@OVVO-Financial

Copy link
Copy Markdown
Owner

Problem

The TestPyPI dry run's Wheels on ubuntu-latest job failed. The wheels built fine; the failure was in cibuildwheel's post-build smoke-test step:

Run-time dependency openblas found: NO (tried pkg-config and cmake)
scipy/meson.build:285:9: ERROR: Dependency "OpenBLAS" not found
Command ['pip', 'install', '.../ovvo_nns-...manylinux2014_x86_64.whl'] failed

Root cause

  • numpy 2.4.6 / scipy 1.17.1 only publish manylinux_2_27 / manylinux_2_28 wheels (glibc ≥ 2.27/2.28).
  • cibuildwheel's default Linux image is manylinux2014 (glibc 2.17). In that container the modern scipy/numpy wheels are incompatible, so pip falls back to compiling scipy from source, which needs OpenBLAS/Fortran that aren't present → fail.

Our runtime deps already require glibc ≥ 2.27, so manylinux2014 wheels were never actually installable for end users anyway.

Fix

Build and test the x86_64 Linux wheels on manylinux_2_28 to match the dependencies' wheel floor:

[tool.cibuildwheel]
manylinux-x86_64-image = "manylinux_2_28"
musllinux-x86_64-image = "musllinux_1_2"

Verified locally that numpy/scipy/matplotlib all publish wheels compatible with manylinux_2_28 and musllinux_1_2 for cp311. macOS and Windows wheels already passed in the same run; this only affects the Linux leg.

https://claude.ai/code/session_012bjk4Y5eT1Sva8tNJjqUSw


Generated by Claude Code

claude added 2 commits June 14, 2026 14:29
cibuildwheel defaults the x86_64 macOS deployment target to 10.9, but
nanobind's C++17 runtime uses aligned new/delete which requires macOS
10.13+. Every macOS wheel job failed to compile nanobind (nb_type.cpp:
'aligned deallocation function ... only available on macOS 10.13 or
newer'). Pin the deployment target to 10.14 for the macOS builds.
cibuildwheel's default Linux image is manylinux2014 (glibc 2.17), but
numpy/scipy only publish manylinux_2_27/_2_28 wheels. In the glibc 2.17
test container those wheels are incompatible, so pip falls back to
compiling scipy from source, which needs OpenBLAS/Fortran that aren't
present, and the wheel smoke-test fails. Our runtime deps already require
glibc >= 2.27, so manylinux2014 wheels were never installable anyway.

Build and test the x86_64 Linux wheels on manylinux_2_28 to match the
dependencies' wheel floor. musllinux_1_2 (the cibuildwheel default) is
pinned explicitly; it already has matching numpy/scipy wheels.
@OVVO-Financial
OVVO-Financial merged commit e456a9e into main Jun 14, 2026
4 checks passed
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