Uh oh!
There was an error while loading. Please reload this page.
python -m pybind11 --includes prints include paths - #921
Conversation
jagerman
commented
Jun 23, 2017
I realize there's no |
aldanor
commented
Jun 24, 2017
Agreed, good point re: |
jagerman
commented
Jun 25, 2017
That's probably the most convenient. Perhaps throw in the Python includes, too? |
8858d37 to
6e395f5Comparepython -m pybind11 prints include pathpython -m pybind11 --includes prints include pathsAlright. python -m pybind11 --includesnow prints include flags for both Python (borrowed from python3-config code) and pybind11. (This is a first step, but it'd be nice to eventually integrate other stuff like recommended cflags (e.g. fvisibility-hidden, or exception flags on windows), ldflags (e.g. undefined dynamic_lookup on OS X), and extension-suffix -- so that we can remove python-config/python3-config from the docs.) |
aldanor
commented
Jun 27, 2017
Does this look better now; anything else to do here? |
dean0x7d
commented
Jun 28, 2017
LGTM |
A very minor/cosmetic addition, makes building modules manually slightly easier:
$ c++ -I `python -m pybind11`instead of
$ c++ -I `python -c 'import pybind11; print(pybind11.get_include())'`The docs in #907 could also get updated if this gets accepted.