Skip to content

docs: Updates for building an extension with meson #1050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hpkfft
Copy link
Contributor

@hpkfft hpkfft commented May 17, 2025

@WillAyd, I changed the C++ source code suffix to cpp simply to be consistent with the rest of the nanobind docs. I'm not trying to impose my convention on others. :)

Debian 12 (bookworm, the current stable version) includes meson 1.0.1, which is sufficient for building non-stable-ABI python extensions, but using the keyword argument limited_api requires meson 1.3.0. This is why I included meson.build in full for building against the python stable ABI.

I'll leave this PR as a draft until mesonbuild/wrapdb#2104 is merged in case additional changes are advisable.

Regards,
Paul

@WillAyd
Copy link
Contributor

WillAyd commented May 18, 2025

This looks great - thanks for your contributions @hpkfft

@wjakob
Copy link
Owner

wjakob commented May 20, 2025

Shall I merge this PR? it is still labeled as "draft".

@hpkfft hpkfft marked this pull request as ready for review May 20, 2025 16:51
@hpkfft
Copy link
Contributor Author

hpkfft commented May 20, 2025

Yes, please merge at your convenience.

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.

3 participants