summaryrefslogtreecommitdiff
path: root/scripts/make_pip.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/make_pip.sh')
-rwxr-xr-xscripts/make_pip.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/make_pip.sh b/scripts/make_pip.sh
index d2639ffd6e4..33ad51ada70 100755
--- a/scripts/make_pip.sh
+++ b/scripts/make_pip.sh
@@ -106,6 +106,10 @@ fi
mkdir ${dir}/tests
cd ${dir}
+# Use virtual environment
+python3 -m venv .venv
+source .venv/bin/activate
+
# Make sure the tools are up to date
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
@@ -122,6 +126,8 @@ if [ -n "${upload}" ]; then
echo "Completed upload of ${tool}"
fi
+# Finish using virtual environment
+deactivate
rm -rf "${dir}"
echo -e "done\n\n"