We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d4854a commit fe13f92Copy full SHA for fe13f92
tools/pybind11NewTools.cmake
@@ -95,8 +95,9 @@ endif()
95
# required for PyPy3 (as of 7.3.1)
96
if(NOT DEFINED PYTHON_MODULE_EXTENSION)
97
execute_process(
98
- COMMAND "${${_Python}_EXECUTABLE}" "-c"
99
- "from distutils import sysconfig; print(sysconfig.get_config_var('SO'))"
+ COMMAND
+ "${${_Python}_EXECUTABLE}" "-c"
100
+ "from distutils import sysconfig as s;print(s.get_config_var('SO') or s.get_config_var('EXT_SUFFIX'))"
101
OUTPUT_VARIABLE _PYTHON_MODULE_EXTENSION
102
ERROR_VARIABLE _PYTHON_MODULE_EXTENSION_ERR
103
OUTPUT_STRIP_TRAILING_WHITESPACE)
0 commit comments