Hi everyone,

Just wanted to make you all aware of some improvements to mach and
mozlint's virtualenv management that just landed on latest central,
courtesy of Alex Hochheiden:

   1. The big one is that mach will now use uv
   <https://github.com/astral-sh/uv> to install packages if it is detected
   on your $PATH. I highly encourage everyone to install it
   <https://docs.astral.sh/uv/getting-started/installation/> for an order
   of magnitude performance increase on initial mach virtualenv setup times.
   If for some reason you already have uv installed and *don't* want mach
   to use it, you can set the `MACH_NO_UV` environment variable.
   2. Another welcome change is that the super verbose pip install output
   is now hidden unless something goes wrong. This means much less terminal
   spam when running commands. If you want to keep this output for some
   reason, you can set `MACH_SHOW_PIP_OUTPUT`.
   3. There are a smattering of other performance improvements and bug
   fixes in this area. Such as gathering all requirements and installing them
   in a single invocation (rather than one per package).
   4. Finally all of our Pypi based linters have been refactored such that
   their dependencies are handled by mach's "site" mechanism, rather than
   through mozlint's setup functions. This means `./mach lint` invocations
   will no longer take as long to set up, will have much less log spam and
   will be much more robust in terms of using the correct versions. Non Pypi
   linters still need to be set up on `./mach lint` invocation however.

Big thanks to Alex for these changes! If you notice any issues related to
this, please reach out to me (as Alex is away for now).

Happy coding,
Andrew

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAAJAz%2B7reqKtA%2BaZmfni%2B2KLgJ%2BjyWqbepjiN8jvJBqOn1J69g%40mail.gmail.com.

Reply via email to