From 5dbd4d729fa0ee5f1d7862b9aa36c41dd02af483 Mon Sep 17 00:00:00 2001 From: Jose Luis Blanco-Claraco Date: Wed, 23 Aug 2023 12:12:38 +0200 Subject: [PATCH] Update python module install method to pip (fixes deprecation) --- cmake/install-python.cmake.in | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cmake/install-python.cmake.in b/cmake/install-python.cmake.in index 7dabbe4e..02930d03 100644 --- a/cmake/install-python.cmake.in +++ b/cmake/install-python.cmake.in @@ -8,15 +8,12 @@ else() endif() set(cmd_ - @Python3_EXECUTABLE@ @MVSIM_PYTHON_BUILD_DIRECTORY@/setup.py - install - --root=${INSTALL_ROOT_DIR} - --install-lib=@PYTHON_INSTALL_DIR@ - --install-layout=deb - --single-version-externally-managed + @Python3_EXECUTABLE@ -m pip install . + --target=${INSTALL_ROOT_DIR}/@PYTHON_INSTALL_DIR@ + --ignore-installed + --upgrade ) - string(REPLACE ";" " " _cmd_print "${cmd_}") message(STATUS "Running: ${_cmd_print}")