From d8e3fca4a521d4ed6def274df75869284785b713 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 2 Apr 2023 07:17:17 +0200 Subject: [PATCH] build: remove Python pip --no-user option (#47338) Python pip no longer has a --no-user option. Refs: https://github.com/nodejs/build/issues/3273 Refs: https://github.com/pypa/pip/pull/5116/files --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 12d808102e031f..d882a1b007f687 100644 --- a/Makefile +++ b/Makefile @@ -1493,8 +1493,8 @@ cpplint: lint-cpp # Try with '--system' if it fails without; the system may have set '--user' lint-py-build: $(info Pip installing flake8 linter on $(shell $(PYTHON) --version)...) - $(PYTHON) -m pip install --no-user --upgrade -t tools/pip/site-packages flake8 || \ - $(PYTHON) -m pip install --no-user --upgrade --system -t tools/pip/site-packages flake8 + $(PYTHON) -m pip install --upgrade -t tools/pip/site-packages flake8 || \ + $(PYTHON) -m pip install --upgrade --system -t tools/pip/site-packages flake8 .PHONY: lint-py ifneq ("","$(wildcard tools/pip/site-packages/flake8)") @@ -1513,8 +1513,8 @@ endif # Try with '--system' if it fails without; the system may have set '--user' lint-yaml-build: $(info Pip installing yamllint on $(shell $(PYTHON) --version)...) - $(PYTHON) -m pip install --no-user --upgrade -t tools/pip/site-packages yamllint || \ - $(PYTHON) -m pip install --no-user --upgrade --system -t tools/pip/site-packages yamllint + $(PYTHON) -m pip install --upgrade -t tools/pip/site-packages yamllint || \ + $(PYTHON) -m pip install --upgrade --system -t tools/pip/site-packages yamllint .PHONY: lint-yaml # Lints the YAML files with yamllint.