Repository navigation
fix(cmake): accept Arrow 24.x in pyOpenMS standalone build - #9221
Conversation
The pyOpenMS standalone build path (used by cibuildwheel) called find_package(Arrow 23 CONFIG REQUIRED) directly. Arrow's ConfigVersion uses SameMajorVersion compatibility, so requesting 23 rejects Homebrew's 24.0.0 and the macOS wheel build fails at CMake configure. Mirror the fix from OpenMS#9196 (cmake/cmake_findExternalLibs.cmake): drop the version pin from find_package and check the minimum manually afterwards. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughArrow dependency version pinning is replaced with a flexible discovery mechanism in the pyOpenMS build configuration. The CMake script now requests Arrow without version constraints and validates the discovered version is at least 23 post-discovery, failing configuration if the requirement is unmet. Changes
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add missing entries for: - #9221: pyOpenMS standalone/cibuildwheel Arrow 24.x CMake fix - #9218: PercolatorAdapter in-process Percolator rescoring backend - #9224: ProSE/FragmentIndex SNES X/B/Z mother truncation fix - #9223: OpenSwathWorkflow macOS arm64 duplicate TLS symbol fix Co-authored-by: GitHub Copilot <[email protected]> Co-authored-by: Copilot <[email protected]>
Add missing CHANGELOG entries for 4 recent code PRs that were not yet documented: - #9218: feat(Percolator) in-process backend — new OpenMS::Percolator class (vendored Percolator 3.08 + TRON solver) and PercolatorAdapter -use_subprocess flag; entries added under OpenMS Library Added and TOPP tools PercolatorAdapter sections. - #9221: fix(cmake) Arrow 24.x in pyOpenMS standalone build — the cibuildwheel CMakeLists.txt version pin now dropped like #9196; entry added under Dependencies. - #9223: fix(openswath) duplicate TLS init symbol on macOS arm64/clang — g_picker_pool_shared moved from inline thread_local in header to a single .cpp definition; entry added under OpenSwathWorkflow. - #9224: fix(FragmentIndex) SNES mothers truncated at X/B/Z residues — proteins with ambiguous residues split into unambiguous spans for SNES indexing; entry added under ProSE. Co-authored-by: GitHub Copilot <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: timosachsenberg <[email protected]>
Summary
build-wheels-macosinpyopenms-wheels-cibuildwheel.yml), which currently fails at CMake configure because Homebrew now shipsapache-arrow24.0.0.23version pin fromfind_package(Arrow CONFIG REQUIRED)insrc/pyOpenMS/CMakeLists.txtand checks the minimum manually afterwards — same pattern as fix(cmake): accept Arrow/Parquet 24.x and later #9196 already applied tocmake/cmake_findExternalLibs.cmake.Why
Arrow's
ArrowConfigVersion.cmakeusesSameMajorVersioncompatibility, sofind_package(Arrow 23 ...)rejects 24.x:This was already fixed for the main OpenMS build in #9196, but the standalone pyOpenMS path (taken by
cibuildwheelwhen building wheels withNO_DEPENDENCIES=ON) was missed. The full-OpenMS macOS CI job passes; only the standalone wheel job fails.Compatibility
Pure CMake version-discovery change. No effect on:
MACOSX_DEPLOYMENT_TARGET=14.0(set in the wheels workflow)ARROW_USE_STATIC=OFFandArrow::arrow_sharedtarget selection unchangeddelocate-wheelrepair pipelineTest plan
pyopenms-wheels-cibuildwheel.ymlmacOS arm64 job (build-wheels-macos) reaches the build step (no longer fails at CMake configure)🤖 Generated with Claude Code
Summary by CodeRabbit