Skip to content

Commit cce5a8c

Browse files
cclaussaduh95
authored andcommitted
build: remove Python pip --no-user option
Python pip no longer has a `--no-user` option. Refs: nodejs/build#3273 Refs: https://github.com/pypa/pip/pull/5116/files PR-URL: #47372 Reviewed-By: Debadree Chatterjee <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent 6d06586 commit cce5a8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1493,8 +1493,8 @@ cpplint: lint-cpp
14931493
# Try with '--system' if it fails without; the system may have set '--user'
14941494
lint-py-build:
14951495
$(info Pip installing flake8 linter on $(shell $(PYTHON) --version)...)
1496-
$(PYTHON) -m pip install --no-user --upgrade -t tools/pip/site-packages flake8 || \
1497-
$(PYTHON) -m pip install --no-user --upgrade --system -t tools/pip/site-packages flake8
1496+
$(PYTHON) -m pip install --upgrade -t tools/pip/site-packages flake8 || \
1497+
$(PYTHON) -m pip install --upgrade --system -t tools/pip/site-packages flake8
14981498

14991499
.PHONY: lint-py
15001500
ifneq ("","$(wildcard tools/pip/site-packages/flake8)")
@@ -1513,8 +1513,8 @@ endif
15131513
# Try with '--system' if it fails without; the system may have set '--user'
15141514
lint-yaml-build:
15151515
$(info Pip installing yamllint on $(shell $(PYTHON) --version)...)
1516-
$(PYTHON) -m pip install --no-user --upgrade -t tools/pip/site-packages yamllint || \
1517-
$(PYTHON) -m pip install --no-user --upgrade --system -t tools/pip/site-packages yamllint
1516+
$(PYTHON) -m pip install --upgrade -t tools/pip/site-packages yamllint || \
1517+
$(PYTHON) -m pip install --upgrade --system -t tools/pip/site-packages yamllint
15181518

15191519
.PHONY: lint-yaml
15201520
# Lints the YAML files with yamllint.

0 commit comments

Comments
 (0)