summaryrefslogtreecommitdiff
path: root/evergreen/prelude_db_contrib_tool.sh
diff options
context:
space:
mode:
Diffstat (limited to 'evergreen/prelude_db_contrib_tool.sh')
-rw-r--r--evergreen/prelude_db_contrib_tool.sh32
1 files changed, 6 insertions, 26 deletions
diff --git a/evergreen/prelude_db_contrib_tool.sh b/evergreen/prelude_db_contrib_tool.sh
index 85d4d786a36..c834e239a38 100644
--- a/evergreen/prelude_db_contrib_tool.sh
+++ b/evergreen/prelude_db_contrib_tool.sh
@@ -1,31 +1,11 @@
function setup_db_contrib_tool_venv {
- local db_contrib_tool_venv_dir="${workdir}/db_contrib_tool_venv"
- if [ -d "$db_contrib_tool_venv_dir" ]; then
- echo "Found existing db-contrib-tool venv. Skipping setup."
- exit 0
- fi
- $python -m venv "$db_contrib_tool_venv_dir"
+ mkdir ${workdir}/pipx
+ export PIPX_HOME="${workdir}/pipx"
+ export PIPX_BIN_DIR="${workdir}/pipx/bin"
+ export PATH="$PATH:$PIPX_BIN_DIR"
- if [ "Windows_NT" = "$OS" ]; then
- dos2unix "$db_contrib_tool_venv_dir/Scripts/activate"
- fi
-
- activate_db_contrib_tool_venv
python -m pip --disable-pip-version-check install "pip==21.0.1" "wheel==0.37.0" || exit 1
- python -m pip --disable-pip-version-check install "db-contrib-tool==0.2.1" || exit 1
-}
-
-function activate_db_contrib_tool_venv {
- local db_contrib_tool_venv_dir="${workdir}/db_contrib_tool_venv"
- if [ ! -d "$db_contrib_tool_venv_dir" ]; then
- echo "Could not find db-contrib-tool venv."
- exit 1
- fi
-
- if [ "Windows_NT" = "$OS" ]; then
- . "$db_contrib_tool_venv_dir/Scripts/activate"
- else
- . "$db_contrib_tool_venv_dir/bin/activate"
- fi
+ python -m pip --disable-pip-version-check install "pipx" || exit 1
+ pipx install "db-contrib-tool==0.4.3" || exit 1
}