mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
lint_setup should not require elevated privileges (#61798)
Summary: s/pip/pip3/ (because unversioned pip can reference either pip2 or pip3 depending on setup) Always invoke `pip install` with user option (otherwise, unless one is using conda environment, it will try to install in system folder, which should not be writable to regular users) Do not install shellcheck in `/usr/bin`, but rather rely on `~/.local/bin` and add it to the PATH Pull Request resolved: https://github.com/pytorch/pytorch/pull/61798 Reviewed By: zhouzhuojie, seemethere Differential Revision: D29747286 Pulled By: malfet fbshipit-source-id: 30cb51fe60b5096b758f430d1c51465205532a19
This commit is contained in:
committed by
Facebook GitHub Bot
parent
994434ad16
commit
e067960243
4
Makefile
4
Makefile
@ -69,8 +69,8 @@ setup_lint:
|
||||
$(PYTHON) tools/actions_local_runner.py --file .github/workflows/lint.yml \
|
||||
--job 'shellcheck' --step 'Install ShellCheck' --no-quiet; \
|
||||
fi
|
||||
pip install jinja2
|
||||
pip install -r tools/linter/clang_tidy/requirements.txt
|
||||
$(PYTHON) -mpip install jinja2 --user
|
||||
$(PYTHON) -mpip install -r tools/linter/clang_tidy/requirements.txt --user
|
||||
$(PYTHON) -m tools.linter.install.clang_tidy
|
||||
|
||||
quick_checks:
|
||||
|
Reference in New Issue
Block a user