Bug 1766497: Mach: use `venv` instead of `virtualenv` r=ahal
commit53c89c581feb0a9e1d0145609d134eca431c0daa
authorMitchell Hentges <mhentges@mozilla.com>
Wed, 4 May 2022 14:17:04 +0000 (4 14:17 +0000)
committerMitchell Hentges <mhentges@mozilla.com>
Wed, 4 May 2022 14:17:04 +0000 (4 14:17 +0000)
tree94c16e434f4849d3d0ca2fe8747ee3411aa2ce58
parent94867a6ae6a8b79c99a55db69d98b19844069d4f
Bug 1766497: Mach: use `venv` instead of `virtualenv` r=ahal

Brew's Python 3.10 causes `virtualenv==20.7.2` to produce a wonky folder
structure (`$venv/opt/homebrew/lib/python3.10/site-packages`?).

This is likely fixed with newer `virtualenv`, but the simpler workaround
here is to use `venv` instead now that Python 3 is always used.

Adds `python3-venv` to docker image so that tests and debian-based tasks
can leverage it.

Differential Revision: https://phabricator.services.mozilla.com/D144872
python/mach/mach/site.py
python/mach/mach/test/test_site_activation.py
python/mach/mach/test/test_site_compatibility.py
taskcluster/docker/debian-base/Dockerfile