Return the path to the pybind11 include directory. The historical "user" argument is unused, and may be removed.
(user: bool = False)
| 6 | |
| 7 | |
| 8 | def get_include(user: bool = False) -> str: # noqa: ARG001 |
| 9 | """ |
| 10 | Return the path to the pybind11 include directory. The historical "user" |
| 11 | argument is unused, and may be removed. |
| 12 | """ |
| 13 | installed_path = os.path.join(DIR, "include") |
| 14 | source_path = os.path.join(os.path.dirname(DIR), "include") |
| 15 | return installed_path if os.path.exists(installed_path) else source_path |
| 16 | |
| 17 | |
| 18 | def get_cmake_dir() -> str: |