From 1cacc302aed65708eaadd5b49b1d9b80ededcfb5 Mon Sep 17 00:00:00 2001 From: "Dr. Fatih Tekin" Date: Mon, 5 Jan 2026 21:09:21 +0100 Subject: [PATCH] Fixed an error with virtual environements --- scripts/install_dev_tools.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/install_dev_tools.sh b/scripts/install_dev_tools.sh index 9f56b8e..a0d7a9c 100755 --- a/scripts/install_dev_tools.sh +++ b/scripts/install_dev_tools.sh @@ -143,7 +143,12 @@ install_python_packages() { fi echo "📦 Installing Python packages with $PIP_CMD..." - $PIP_CMD install --user gcovr pytest pytest-cov + + if [ -n "$VIRTUAL_ENV" ]; then + $PIP_CMD install gcovr pytest pytest-cov + else + $PIP_CMD install --user gcovr pytest pytest-cov + fi echo "✅ Python packages installed" }