From 50c3bd40f3fb0c9c998f486da1c3625f98a8da58 Mon Sep 17 00:00:00 2001 From: WillB97 Date: Mon, 5 Aug 2024 08:52:33 +0100 Subject: [PATCH] Update pip and setuptools in the venv On older python this is required to use the opencv wheel --- scripts/setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/setup.py b/scripts/setup.py index b5daea4..928d9b7 100755 --- a/scripts/setup.py +++ b/scripts/setup.py @@ -42,6 +42,10 @@ else: pip = venv_dir / "bin/pip" venv_python = venv_dir / "bin/python" + run( + [str(venv_python), "-m", "pip", "install", "--upgrade", "pip", "setuptools", "wheel"], + cwd=venv_dir, + ) run([str(pip), "install", "-r", str(requirements)], cwd=venv_dir) logger.info("Setting up Webots Python location")