From 69c3d7e44b7e90acb124515d0e0c42ea10e0ab60 Mon Sep 17 00:00:00 2001
From: Christos Tsolakis <christos.tsolakis@kitware.com>
Date: Tue, 22 Oct 2024 09:40:00 -0400
Subject: [PATCH] ci: python-wheels ensure required packages are installed

Fixes ModuleNotFoundError: No module named 'setuptools'
during the /bin/python setup.py bdist_wheel step
---
 .gitlab/os-linux.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitlab/os-linux.yml b/.gitlab/os-linux.yml
index 65bd257fad0..7edcf78e0ae 100644
--- a/.gitlab/os-linux.yml
+++ b/.gitlab/os-linux.yml
@@ -614,6 +614,7 @@
         - $LAUNCHER ctest -VV -S .gitlab/ci/ctest_build.cmake &> $GIT_CLONE_PATH/compile_output.log
         - sccache --show-stats
         - cd build
+        - "$PYTHON_PREFIX/bin/python -m pip install -U setuptools wheel"
         - "$PYTHON_PREFIX/bin/python setup.py bdist_wheel"
         - auditwheel show dist/*.whl > $GIT_CLONE_PATH/wheel_output.log
         - "$PYTHON_PREFIX/bin/python $GIT_CLONE_PATH/.gitlab/ci/create_wheel_sdk_archive.py"
-- 
GitLab