From: Klement Sekera Date: Tue, 30 Mar 2021 17:46:06 +0000 (+0200) Subject: tests: call venv module directly X-Git-Tag: v21.10-rc0~309 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F34%2F31834%2F3;p=vpp.git 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 --- 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)"