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