MCPcopy Create free account
hub / github.com/FDio/vpp / build_venv

Function build_venv

test/run.py:169–184  ·  view source on GitHub ↗

Setup the Python virtual environment via vpp Makefile.

()

Source from the content-addressed store, hash-verified

167
168
169def build_venv():
170 """Setup the Python virtual environment via vpp Makefile."""
171 print(
172 f"Setting up Python virtual environment using Makefile in "
173 f"{ws_root}/test/venv..."
174 )
175
176 if not ws_root.is_dir():
177 print(f"Error: WS_ROOT directory not valid at {ws_root}")
178 sys.exit(1)
179
180 try:
181 run(["make", "test-dep"], cwd=str(ws_root), check=True)
182 except CalledProcessError as e:
183 print(f"Failed to set up test virtualenv using Makefile: {e}")
184 sys.exit(e.returncode)
185
186
187def expand_mix_string(s):

Callers 1

run.pyFile · 0.85

Calls 2

printFunction · 0.85
runFunction · 0.50

Tested by

no test coverage detected