mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-24 14:15:11 +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:
parent
1411207711
commit
2a2f52201d
2
.github/workflows/format.yml
vendored
2
.github/workflows/format.yml
vendored
@ -22,7 +22,7 @@ jobs:
|
||||
- uses: pre-commit/action@v2.0.0
|
||||
with:
|
||||
# Slow hooks are marked with manual - slow is okay here, run them too
|
||||
extra_args: --hook-stage manual
|
||||
extra_args: --hook-stage manual --all-files
|
||||
|
||||
clang-tidy:
|
||||
name: Clang-Tidy
|
||||
|
@ -6,4 +6,3 @@ install with ``find_package(pybind11 CONFIG)``. The interface provided in
|
||||
either case is functionally identical.
|
||||
|
||||
.. cmake-module:: ../../tools/pybind11Config.cmake.in
|
||||
|
||||
|
@ -3,5 +3,5 @@ commonmark==0.9.1
|
||||
recommonmark==0.6.0
|
||||
sphinx==3.2.1
|
||||
sphinx_rtd_theme==0.5.0
|
||||
sphinxcontrib-svg2pdfconverter==1.1.0
|
||||
sphinxcontrib-moderncmakedomain==3.13
|
||||
sphinxcontrib-svg2pdfconverter==1.1.0
|
||||
|
@ -196,7 +196,7 @@ else()
|
||||
|
||||
endif()
|
||||
|
||||
# --------------------- pybind11_check_import -------------------------------
|
||||
# --------------------- pybind11_find_import -------------------------------
|
||||
|
||||
if(NOT _pybind11_nopython)
|
||||
# Check to see if modules are importable. Use REQUIRED to force an error if
|
||||
|
@ -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
|
||||
|
@ -191,4 +191,6 @@ function(pybind11_add_module target_name)
|
||||
endfunction()
|
||||
|
||||
# Provide general way to call common Python commands in "common" file.
|
||||
set(_Python PYTHON)
|
||||
set(_Python
|
||||
PYTHON
|
||||
CACHE INTERNAL "" FORCE)
|
||||
|
Loading…
Reference in New Issue
Block a user