gecko-dev/tools/lint/python
Andrew Halberstadt c731fa1f2c Bug 1436639 - [lint] Make sure flake8 is run with same python as |mach lint| was, r=jmaher
This fixes a bug which can happen when the default version of python differs from
the version of python used with mach.

For example, mach explicitly looks for python2.7. This means running |mach lint -l flake8|
should also run flake8 with version 2.7. But if the default is python3, and flake8 is also
installed there, the subprocess call that invokes flake8 will run under python3. This can
lead to errors like "undefined name 'basestring'" and other 2to3 gotchas.

This patch ensures that we run the flake8 binary (and the pip for installing flake8) from
the same interpreter as mach, no matter the system default.

MozReview-Commit-ID: HSuMzDsAvsW

--HG--
extra : rebase_source : faf4c8c0eb6f46d8b50c2d9be9aa6f6d47e4e0cb
2018-02-07 23:28:33 -05:00
..
__init__.py
check_compat.py
compat.py Bug 1436792 - [py-compat] Fix issue opening the temporary manifest on Windows, r=jmaher 2018-02-08 14:26:27 -05:00
flake8_requirements.txt Bug 1436639 - [lint] Make sure flake8 is run with same python as |mach lint| was, r=jmaher 2018-02-07 23:28:33 -05:00
flake8.py Bug 1436639 - [lint] Make sure flake8 is run with same python as |mach lint| was, r=jmaher 2018-02-07 23:28:33 -05:00