python: Fix venv not being updated

This commit is contained in:
Corentin Le Molgat
2021-10-29 17:22:37 +02:00
parent 24b90b21a3
commit 04393e43d1

View File

@@ -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