python -m pybind11 --includes prints include paths#921
python -m pybind11 --includes prints include paths#921dean0x7d merged 1 commit intopybind:masterfrom
python -m pybind11 --includes prints include paths#921Conversation
|
I realize there's no |
|
Agreed, good point re: |
|
That's probably the most convenient. Perhaps throw in the Python includes, too? |
8858d37 to
6e395f5
Compare
python -m pybind11 prints include pathpython -m pybind11 --includes prints include paths
|
Alright. 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.) |
|
Does this look better now; anything else to do here? |
|
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.