From 7554aef84a8a406c9dae73a7445e8b97920a83b3 Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Tue, 30 Mar 2021 19:46:06 +0200 Subject: tests: call venv module directly This avoids ModuleNotFoundError: No module named 'virtualenv.seed.embed.via_app_data' https://github.com/pypa/virtualenv/issues/1873 Type: fix Signed-off-by: Klement Sekera Change-Id: I860cc8c4ad2ba509815c5e7cf02fa5e01ee2ed63 --- test/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index 24210864117..d4d74bb62b4 100644 --- a/test/Makefile +++ b/test/Makefile @@ -124,7 +124,7 @@ PAPI_WIPE_DIST=$(WS_ROOT)/src/vpp-api/vapi/__pycache__ \ $(PIP_TOOLS_INSTALL_DONE): @rm -rf $(VENV_PATH) @mkdir -p $(VENV_RUN_DIR) - @virtualenv $(VENV_PATH) -p $(PYTHON_INTERP) + @$(PYTHON_INTERP) -m venv $(VENV_PATH) # pip version pinning @bash -c "source $(VENV_PATH)/bin/activate && \ $(PYTHON_INTERP) -m pip install pip===$(PIP_VERSION)" -- cgit 1.2.3-korg