From 4699c039152ff3ddc9b6272ed50ab33fbaa72b9b Mon Sep 17 00:00:00 2001 From: Adnaan Bheda Date: Wed, 19 Oct 2022 01:06:27 +0530 Subject: [PATCH 1/2] python -m pip install -U pip works with windows --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 58b632403..01f6a1167 100755 --- a/scripts/install +++ b/scripts/install @@ -15,5 +15,5 @@ else PIP="pip" fi -"$PIP" install -U pip +"$PYTHON" -m "$PIP" install -U pip "$PIP" install -r "$REQUIREMENTS" From 92cc84a14dd076290c636c9220f47f9a0e784047 Mon Sep 17 00:00:00 2001 From: Adnaan Bheda Date: Wed, 19 Oct 2022 02:45:43 +0530 Subject: [PATCH 2/2] fixes local dep installation as well --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 01f6a1167..edd300997 100755 --- a/scripts/install +++ b/scripts/install @@ -12,8 +12,8 @@ if [ -z "$GITHUB_ACTIONS" ]; then "$PYTHON" -m venv "$VENV" PIP="$VENV/bin/pip" else - PIP="pip" + PIP="$PYTHON -m pip" fi -"$PYTHON" -m "$PIP" install -U pip -"$PIP" install -r "$REQUIREMENTS" +${PIP} install -U pip +${PIP} install -r "$REQUIREMENTS"