Skip to content

Commit 753185c

Browse files
cclaussMoLow
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 99312a5 commit 753185c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,8 +1518,8 @@ cpplint: lint-cpp
15181518
# Try with '--system' if it fails without; the system may have set '--user'
15191519
lint-py-build:
15201520
$(info Pip installing flake8 linter on $(shell $(PYTHON) --version)...)
1521-
$(PYTHON) -m pip install --no-user --upgrade -t tools/pip/site-packages flake8 || \
1522-
$(PYTHON) -m pip install --no-user --upgrade --system -t tools/pip/site-packages flake8
1521+
$(PYTHON) -m pip install --upgrade -t tools/pip/site-packages flake8 || \
1522+
$(PYTHON) -m pip install --upgrade --system -t tools/pip/site-packages flake8
15231523

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

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

0 commit comments

Comments
 (0)