Skip to content

Correctly locate a locally installed nanobind - #8874

Merged
timosachsenberg merged 1 commit into
developfrom
pjones/nanobind-fixes
Mar 10, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
pjones/nanobind-fixes

Conversation

@pjones

@pjones pjones commented Mar 10, 2026 •

Copy link
Copy Markdown
Contributor

Correctly locate a locally installed nanobind as per step 1 in the nanobind documentation.

Summary by CodeRabbit

  • Chores
    • Improved build configuration to enhance nanobind discovery during the build process, ensuring more reliable and consistent compilation setup.

As per step 1 in the nanobind documentation.
@pjones
pjones requested a review from timosachsenberg March 10, 2026 13:52
@coderabbitai

coderabbitai Bot commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 789af3fe-0529-4e28-8618-d40a96505394

📥 Commits

Reviewing files that changed from the base of the PR and between 1012db2 and a08521f.

📒 Files selected for processing (1)
  • src/pyOpenMS/CMakeLists.txt

📝 Walkthrough

Walkthrough

The change adds a pre-discovery step in the CMake build configuration that executes a Python command to compute and set nanobind_ROOT before attempting to find the nanobind package via find_package(). This ensures the CMake variable is populated from the nanobind installation location prior to subsequent configuration steps.

Changes

Cohort / File(s) Summary
CMake Build Configuration
src/pyOpenMS/CMakeLists.txt
Added execute_process call to run python -m nanobind --cmake_dir and populate nanobind_ROOT variable before nanobind package discovery via find_package.

Poem

🐰 Ah, nanobind's path was hidden from sight,
So we asked Python to guide us right!
A whisper, a hop, --cmake_dir we say,
Now ROOT is set—build bright today! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Correctly locate a locally installed nanobind' directly and specifically describes the main change—adding logic to properly discover locally installed nanobind via the Python interpreter. It is concise, clear, and accurately reflects the changeset's primary objective.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch pjones/nanobind-fixes

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@timosachsenberg

Copy link
Copy Markdown
Contributor

Thanks!

@timosachsenberg timosachsenberg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pjones
pjones enabled auto-merge (rebase) March 10, 2026 14:28
@timosachsenberg
timosachsenberg enabled auto-merge (squash) March 10, 2026 15:06
@timosachsenberg
timosachsenberg merged commit c542846 into develop Mar 10, 2026
18 of 19 checks passed
@timosachsenberg
timosachsenberg deleted the pjones/nanobind-fixes branch March 10, 2026 18:36
github-actions Bot pushed a commit that referenced this pull request Mar 17, 2026
Add missing changelog entries for changes merged in the past 7 days:

- PyOpenMS: PeptideAndProteinQuant.getPeptideResults/getProteinResults exposed (#8543)
- PyOpenMS BREAKING: zero-copy _mv methods renamed to _view (#8857)
- TOPP BREAKING: FeatureFinderMultiplex/MultiplexResolver parameter missed_cleavages renamed to max_nr_labelled_aas (#8911)
- TOPP: MaRaClusterAdapter annotates consensus spectra with native IDs and cluster metadata (#8864)
- TOPP: MetaboliteAdductDecharger adds multimer detection (#8888)
- OpenMS Library BREAKING: ChromatogramPeak::IntensityType changed double -> float (#8857)
- Build: CMake 4.x compat fix for Windows packaging (#8880)
- Build: Fix pyOpenMS dev build RPATH (#8892)
- Build: Correctly locate locally installed nanobind (#8874)

Co-authored-by: Copilot <[email protected]>
timosachsenberg pushed a commit that referenced this pull request Mar 17, 2026
Add missing changelog entries for changes merged in the past 7 days:

- PyOpenMS: PeptideAndProteinQuant.getPeptideResults/getProteinResults exposed (#8543)
- PyOpenMS BREAKING: zero-copy _mv methods renamed to _view (#8857)
- TOPP BREAKING: FeatureFinderMultiplex/MultiplexResolver parameter missed_cleavages renamed to max_nr_labelled_aas (#8911)
- TOPP: MaRaClusterAdapter annotates consensus spectra with native IDs and cluster metadata (#8864)
- TOPP: MetaboliteAdductDecharger adds multimer detection (#8888)
- OpenMS Library BREAKING: ChromatogramPeak::IntensityType changed double -> float (#8857)
- Build: CMake 4.x compat fix for Windows packaging (#8880)
- Build: Fix pyOpenMS dev build RPATH (#8892)
- Build: Correctly locate locally installed nanobind (#8874)

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
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