python: Use and refer to the venv module rather than virtualenv
authorTom Rini <trini@konsulko.com>
Tue, 15 Apr 2025 18:10:26 +0000 (12:10 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 24 Apr 2025 21:37:27 +0000 (15:37 -0600)
commitefd00b03455644b18eaf2b6dcd07f6d55b95b39e
tree037d898da2753ccf92134099cc643e51b7b3d38d
parent10f48365112b164bee6564033ab682747efcb483
python: Use and refer to the venv module rather than virtualenv

Using some form of sandbox with Python modules is a long standing best
practice with the language. There are a number of ways to have a Python
sandbox be created. At this point in time, it seems the Python community
is moving towards using the "venv" module provided with Python rather
than a separate tool. To match that we make the following changes:

- Refer to a "Python sandbox" rather than virtualenv in comments, etc.
- Install the python3-venv module in our container and not virtualenv.
- In our CI files, invoke "python -m venv" rather than "virtualenv".
- In documentation, tell users to install python3-venv and not
  virtualenv.

Signed-off-by: Tom Rini <trini@konsulko.com>
.azure-pipelines.yml
.gitlab-ci.yml
doc/build/gcc.rst
doc/develop/py_testing.rst
tools/buildman/test.py
tools/buildman/toolchain.py
tools/docker/Dockerfile
tools/u_boot_pylib/test_util.py