Skip to content
Snippets Groups Projects
Commit 4333f6a5 authored by AlQuemist's avatar AlQuemist Committed by Ammar Nejati
Browse files

PyDependences: add 'auditwheel' as a required Python package for Linux (PEP 599)

parent bf2df88b
No related branches found
No related tags found
1 merge request!1698Python script to build installers and wheels for all platforms and Python versions
......@@ -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}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment