From 04393e43d101c5d020d674613885ea7e4d6f66db Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Fri, 29 Oct 2021 17:22:37 +0200 Subject: [PATCH] python: Fix venv not being updated --- cmake/python.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/python.cmake b/cmake/python.cmake index f5264c90aa..753e4fbb49 100644 --- a/cmake/python.cmake +++ b/cmake/python.cmake @@ -215,6 +215,7 @@ if(BUILD_TESTING) endif() # make a virtualenv to install our python package in it add_custom_command(TARGET python_package POST_BUILD + COMMAND ${CMAKE_COMMAND} -E remove_directory ${VENV_DIR} COMMAND ${VENV_EXECUTABLE} ${VENV_DIR} # Must not call it in a folder containing the setup.py otherwise pip call it # (i.e. "python setup.py bdist") while we want to consume the wheel package