mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
fix: find_import didn't work properly for classic tools (#2550)
* fix: find_import didn't work properly for classic tools * ci: fix all files not being checked in style run
This commit is contained in:
@@ -94,9 +94,10 @@ execute_process(
|
||||
ERROR_VARIABLE _PYTHON_MODULE_EXTENSION_ERR
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
if (_PYTHON_MODULE_EXTENSION STREQUAL "")
|
||||
message(FATAL_ERROR "pybind11 could not query the module file extension, likely the 'distutils'"
|
||||
"package is not installed. Full error message:\n${_PYTHON_MODULE_EXTENSION_ERR}")
|
||||
if(_PYTHON_MODULE_EXTENSION STREQUAL "")
|
||||
message(
|
||||
FATAL_ERROR "pybind11 could not query the module file extension, likely the 'distutils'"
|
||||
"package is not installed. Full error message:\n${_PYTHON_MODULE_EXTENSION_ERR}")
|
||||
endif()
|
||||
|
||||
# This needs to be available for the pybind11_extension function
|
||||
|
||||
Reference in New Issue
Block a user