Skip to content

Commit 666df20

Browse files
cclaussRafaelGSS
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 6b87f29 commit 666df20

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
@@ -1519,8 +1519,8 @@ cpplint: lint-cpp
15191519
# Try with '--system' if it fails without; the system may have set '--user'
15201520
lint-py-build:
15211521
$(info Pip installing flake8 linter on $(shell $(PYTHON) --version)...)
1522-
$(PYTHON) -m pip install --no-user --upgrade -t tools/pip/site-packages flake8 || \
1523-
$(PYTHON) -m pip install --no-user --upgrade --system -t tools/pip/site-packages flake8
1522+
$(PYTHON) -m pip install --upgrade -t tools/pip/site-packages flake8 || \
1523+
$(PYTHON) -m pip install --upgrade --system -t tools/pip/site-packages flake8
15241524

15251525
.PHONY: lint-py
15261526
ifneq ("","$(wildcard tools/pip/site-packages/flake8)")
@@ -1539,8 +1539,8 @@ endif
15391539
# Try with '--system' if it fails without; the system may have set '--user'
15401540
lint-yaml-build:
15411541
$(info Pip installing yamllint on $(shell $(PYTHON) --version)...)
1542-
$(PYTHON) -m pip install --no-user --upgrade -t tools/pip/site-packages yamllint || \
1543-
$(PYTHON) -m pip install --no-user --upgrade --system -t tools/pip/site-packages yamllint
1542+
$(PYTHON) -m pip install --upgrade -t tools/pip/site-packages yamllint || \
1543+
$(PYTHON) -m pip install --upgrade --system -t tools/pip/site-packages yamllint
15441544

15451545
.PHONY: lint-yaml
15461546
# Lints the YAML files with yamllint.

0 commit comments

Comments
 (0)