commit | 3232e59b83196dc0846ff4738e8ce70d79307be1 | [log] [tgz] |
---|---|---|
author | Wenzel Jakob <wenzel.jakob@epfl.ch> | Wed Sep 30 23:49:11 2020 +0200 |
committer | GitHub <noreply@github.com> | Wed Sep 30 17:49:11 2020 -0400 |
tree | 317947f292613ab5e5c21e2dd666c99a15e60ffa | |
parent | 01ad89209a80be8695342427d5b2c153c72b4121 [diff] |
Check if module file extension could be queried correctly (#2538) 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 :))