Repository navigation
[feat/precompile-pybind11-h] feat: expose the precompiled-mode sources to non-CMake builds - #6137
Merged
Merged
Conversation
henryiii
force-pushed
the
feat/precompile-tooling
branch
from
August 7, 2026 03:25
d355af3 to
9b2f2fa
Compare
henryiii
force-pushed
the
feat/precompile-tooling
branch
from
August 7, 2026 03:27
9b2f2fa to
66f3f6d
Compare
henryiii
force-pushed
the
feat/precompile-tooling
branch
from
August 7, 2026 03:33
66f3f6d to
ebed7aa
Compare
henryiii
force-pushed
the
feat/precompile-tooling
branch
2 times, most recently
from
August 7, 2026 16:27
1cf3e84 to
bbcdcf6
Compare
henryiii
force-pushed
the
feat/precompile-tooling
branch
2 times, most recently
from
August 9, 2026 02:51
80852b2 to
b62428d
Compare
henryiii
force-pushed
the
feat/precompile-tooling
branch
from
August 11, 2026 02:59
b62428d to
5165282
Compare
henryiii
force-pushed
the
feat/precompile-tooling
branch
from
August 11, 2026 22:13
5165282 to
d0cbf2c
Compare
henryiii
force-pushed
the
feat/precompile-tooling
branch
2 times, most recently
from
August 14, 2026 17:24
4f75f5f to
8cbb4a7
Compare
Collaborator
Author
|
I'm quite find to not add this to the classic setuptools tooling too. There are some caveats and users really should be using a modern build system instead. |
henryiii
force-pushed
the
feat/precompile-tooling
branch
from
August 15, 2026 03:45
8cbb4a7 to
8dd6204
Compare
henryiii
force-pushed
the
feat/precompile-tooling
branch
from
August 17, 2026 04:50
8dd6204 to
1d3436a
Compare
henryiii
force-pushed
the
feat/precompile-tooling
branch
from
September 27, 2026 02:19
1d3436a to
86e9c15
Compare
Adds pybind11.get_source_dir() / python -m pybind11 --srcdir and a srcdir variable in pybind11.pc, so build systems such as Meson can compile src/pybind11_combined.cpp with PYBIND11_PRECOMPILED defined. Assisted-by: ClaudeCode:claude-fable-5
henryiii
force-pushed
the
feat/precompile-tooling
branch
from
September 28, 2026 16:38
86e9c15 to
572efd1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖
Description
Stacked on #6136. Gives non-CMake build systems (such as Meson) a way to use the precompiled mode:
pybind11.get_source_dir()andpython -m pybind11 --srcdirlocate the shippedsrc/directory (installed package or repo checkout), mirroringget_include().pybind11.pcgains asrcdir=variable.Meson users:
dependency('pybind11').get_variable('srcdir')+-DPYBIND11_PRECOMPILED— a documentation snippet lands in the docs PR.Suggested changelog entry:
📚 Documentation preview 📚: https://pybind11--6137.org.readthedocs.build/
📚 Documentation preview 📚: https://pybind11--6137.org.readthedocs.build/