зеркало из https://github.com/mozilla/gecko-dev.git
c731fa1f2c
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 |
||
---|---|---|
.. | ||
__init__.py | ||
check_compat.py | ||
compat.py | ||
flake8.py | ||
flake8_requirements.txt |