If you never use `mach python-test`, you can stop reading now.

At the latest version of mozilla-central, `mach python-test` no longer takes a 
`--python` command-line argument. If you're used to using it, you have 
alternatives:

* If you're used to doing `./mach python-test --python 3 ...`, you can stop 
passing `--python 3` entirely. Python 3 is the default.

* If you're used to doing `./mach python-test --python 2 ...`, you can do 
`MACH_PY2=1 ./mach python-test ...` instead. The MACH_PY2 environment variable 
will tell mach to use Python 2 instead. (MACH_PY2 only works with python-test, 
so don't just unconditionally set it in your bashrc or something.)

* If you're used to doing `./mach python-test --python $PATH_TO_A_PYTHON_BINARY 
...`, you can do `$PATH_TO_A_PYTHON_BINARY ./mach python-test ...` instead.

If you're wondering why this change was made: under the hood, python-test used 
to use pipenv and would pass the --python command-line argument to pipenv when 
creating its virtualenv. pipenv was determined to be too heavyweight for this 
purpose, and migrating away from it significantly reduced our maintenance 
burden. As a nice side effect, you'll notice that the startup time of `mach 
python-test` is significantly improved.

If you have any questions about this, please let me know.

Ricky
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to