On very incomplete python installations (e.g. within Docker), it's possible that distutils is not installed. In that case, the ``execute_command`` statement that queries distutils for the Python module extension fails, and pybind11 uses the empty string. This commit adds an extra check that causes a CMake failure with more actionable information (just spent a lot of time trying to track down this problem :))
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| FindCatch.cmake | Loading commit data... | |
| FindEigen3.cmake | Loading commit data... | |
| FindPythonLibsNew.cmake | Loading commit data... | |
| check-style.sh | Loading commit data... | |
| cmake_uninstall.cmake.in | Loading commit data... | |
| libsize.py | Loading commit data... | |
| pybind11Common.cmake | Loading commit data... | |
| pybind11Config.cmake.in | Loading commit data... | |
| pybind11NewTools.cmake | Loading commit data... | |
| pybind11Tools.cmake | Loading commit data... | |
| pyproject.toml | Loading commit data... | |
| setup_global.py.in | Loading commit data... | |
| setup_main.py.in | Loading commit data... |