From 13173d148e23f46fcda5918c29d2ed8948ff4716 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Tue, 9 Jul 2024 09:40:27 +0200 Subject: [PATCH] Use --prefix for pip install It does not reinstall already installed packages https://github.com/pypa/pip/issues/10110#issuecomment-872903406 --- vcpkg/ports/py-kadas-requirements/portfile.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcpkg/ports/py-kadas-requirements/portfile.cmake b/vcpkg/ports/py-kadas-requirements/portfile.cmake index 920fccb4..1bc39db8 100644 --- a/vcpkg/ports/py-kadas-requirements/portfile.cmake +++ b/vcpkg/ports/py-kadas-requirements/portfile.cmake @@ -3,7 +3,7 @@ set(BUILD_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel") file(MAKE_DIRECTORY ${BUILD_DIR}) vcpkg_execute_required_process( - COMMAND "${CURRENT_INSTALLED_DIR}/tools/python3/python${VCPKG_HOST_EXECUTABLE_SUFFIX}" "-m" "pip" "install" "-r" "${CURRENT_PORT_DIR}/requirements.txt" "--target" "${CURRENT_PACKAGES_DIR}/${PYTHON3_SITE}" + COMMAND "${CURRENT_INSTALLED_DIR}/tools/python3/python${VCPKG_HOST_EXECUTABLE_SUFFIX}" "-m" "pip" "install" "-r" "${CURRENT_PORT_DIR}/requirements.txt" "--prefix" "${CURRENT_PACKAGES_DIR}/tools/python3" WORKING_DIRECTORY "${BUILD_DIR}" LOGNAME "requirements-install-${TARGET_TRIPLET}-rel" )