Setup the Python virtual environment via vpp Makefile.
()
| 167 | |
| 168 | |
| 169 | def 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 | |
| 187 | def expand_mix_string(s): |