From 8346860590d0f0f295914dd7d2778fb4e50b3dd4 Mon Sep 17 00:00:00 2001 From: Adrian Stanea Date: Tue, 6 Aug 2024 17:10:47 +0300 Subject: [PATCH] ci/macOS: force python versions - The distutils package was deprecated and removed in Python 3.12 which is the default in the Azure Pipelines. This commit uses the Python executable for 3.11 which is set in another step. Signed-off-by: Adrian Stanea --- CI/macOS/make_macOS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CI/macOS/make_macOS b/CI/macOS/make_macOS index 79a1fe7b..e1f0af6c 100755 --- a/CI/macOS/make_macOS +++ b/CI/macOS/make_macOS @@ -9,6 +9,7 @@ make_package() { echo "### Make OSX packague" mkdir -p "${WORKDIR}"/build && cd "${WORKDIR}"/build cmake "$WORKDIR" \ + -DPYTHON_EXECUTABLE:FILEPATH=$(python -c "import os, sys; print(os.path.dirname(sys.executable) + '/python')") \ -DOSX_PACKAGE=ON \ -DENABLE_TOOLS=ON \ -DENABLE_PYTHON=ON \ @@ -24,6 +25,7 @@ make_tar() { echo "### Make OSX tar" mkdir -p "${WORKDIR}"/build_tar && cd "${WORKDIR}"/build_tar cmake "${WORKDIR}" \ + -DPYTHON_EXECUTABLE:FILEPATH=$(python -c "import os, sys; print(os.path.dirname(sys.executable) + '/python')") \ -DOSX_PACKAGE=OFF \ -DENABLE_PACKAGING=ON \ -DENABLE_PYTHON=ON \