Skip to content

Commit

Permalink
Use --prefix for pip install
Browse files Browse the repository at this point in the history
It does not reinstall already installed packages pypa/pip#10110 (comment)
  • Loading branch information
m-kuhn authored Jul 9, 2024
1 parent b3e424d commit 13173d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcpkg/ports/py-kadas-requirements/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 13173d1

Please sign in to comment.