diff --git a/cmake/multipython/PyDependences.cmake b/cmake/multipython/PyDependences.cmake index 8c678c80057df6f4487a24568098f04c51e38162..5c217c1a86f00a5b72e2ff6d024a9938f6764bf7 100644 --- a/cmake/multipython/PyDependences.cmake +++ b/cmake/multipython/PyDependences.cmake @@ -21,7 +21,13 @@ message(STATUS "Python package destination directory: ${destination_pypackage}") # check presence of some Python modules message(STATUS "Searching required Python packages...") -foreach(pkg pip numpy matplotlib) +set(py_packages "pip;numpy;matplotlib") +if(LINUX) + # on Linux, `auditwheel` is needed to produce 'manylinux' wheels repair (PEP 599) + list(APPEND py_packages "auditwheel") +endif() + +foreach(pkg ${py_packages}) message(STATUS "Python package ${pkg}") execute_process( COMMAND ${Python3_EXECUTABLE} -c "import ${pkg}"