7from ._version
import __version__
8from .commands
import get_cmake_dir, get_include, get_pkgconfig_dir
11def print_includes() -> None:
13 sysconfig.get_path(
"include"),
14 sysconfig.get_path(
"platinclude"),
21 if d
and d
not in unique_dirs:
24 print(
" ".join(
"-I" + d
for d
in unique_dirs))
28 parser = argparse.ArgumentParser()
33 help=
"Print the version and exit.",
38 help=
"Include flags for both pybind11 and Python headers.",
43 help=
"Print the CMake module directory, ideal for setting -Dpybind11_ROOT in CMake.",
48 help=
"Print the pkgconfig directory, ideal for setting $PKG_CONFIG_PATH.",
50 args = parser.parse_args()
56 print(get_cmake_dir())
58 print(get_pkgconfig_dir())
61if __name__ ==
"__main__":
int main(int argc, char *argv[])