Skip to content

Commit

Permalink
ci/macOS: force python versions
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
  • Loading branch information
Adrian-Stanea committed Aug 6, 2024
1 parent df03ebe commit 8346860
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CI/macOS/make_macOS
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down

0 comments on commit 8346860

Please sign in to comment.