Skip to content

Commit 92d157b

Browse files
force venv
1 parent a223695 commit 92d157b

File tree

6 files changed

+21
-10
lines changed

6 files changed

+21
-10
lines changed

tool/mongodb/install-driver.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ set -eu
22

33
echo 'installing driver...'
44
sudo apt update -y
5-
sudo apt install -y python3-pip
6-
python3 -m pip install pymongo
7-
echo 'installing driver done'
5+
sudo apt install -y python3-pip python3-venv
6+
if [ ! -x venv ]; then python3 -m venv venv; fi
7+
. venv/bin/activate
8+
pip install pymongo
9+
echo 'installing driver done'

tool/neo4j/install-driver.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
set -eu
22

3-
sudo apt install -y python3-pip
3+
sudo apt update -y
4+
sudo apt install -y python3-pip python3-venv
5+
if [ ! -x venv ]; then python3 -m venv venv; fi
6+
. venv/bin/activate
47
pip install neo4j

tool/ovh/tpcc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ tool/ovh/clone-repo.sh $(git rev-parse HEAD)
3636
tool/ovh/ssh-exec.sh "'cd typedb-benchmark && tool/$DB/setup.sh'"
3737

3838
tool/ovh/ssh-exec.sh "'
39-
cd typedb-benchmark &&
39+
cd typedb-benchmark && . venv/bin/activate &&
4040
nohup tool/execute-tpcc.sh --no-execute --reset --scalefactor=$SCALE_FACTOR --warehouses=$WAREHOUSES --clients=$CLIENTS --duration=$DURATION $DB & wait \$!
4141
'"
4242

4343
tool/ovh/ssh-exec.sh "'
44-
cd typedb-benchmark &&
44+
cd typedb-benchmark && . venv/bin/activate &&
4545
nohup tool/execute-tpcc.sh --no-load --scalefactor=$SCALE_FACTOR --warehouses=$WAREHOUSES --clients=$CLIENTS --duration=$DURATION $DB & wait \$!
4646
'"
4747

tool/postgres/install-driver.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ set -eu
22

33
echo 'installing driver...'
44
sudo apt update -y
5-
sudo apt install -y python3-pip
5+
sudo apt install -y python3-pip python3-venv
6+
if [ ! -x venv ]; then python3 -m venv venv; fi
7+
. venv/bin/activate
68
pip install psycopg2-binary
79
echo 'installing driver done'

tool/typedb2/install-driver.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ set -eu
33
source tool/typedb2/config.sh
44

55
sudo apt update -y
6-
sudo apt install -y python3-pip
7-
pip install typedb-driver=="$DRIVER_VERSION"
6+
sudo apt install -y python3-pip python3-venv
7+
if [ ! -x venv ]; then python3 -m venv venv; fi
8+
. venv/bin/activate
9+
pip install typedb-driver=="$DRIVER_VERSION"

tool/typedb3/install-driver.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ set -eu
33
source tool/typedb3/config.sh
44

55
sudo apt update -y
6-
sudo apt install -y python3-pip
6+
sudo apt install -y python3-pip python3-venv
7+
if [ ! -x venv ]; then python3 -m venv venv; fi
8+
. venv/bin/activate
79
pip install typedb-driver=="$DRIVER_VERSION" --extra-index-url https://repo.typedb.com/public/public-snapshot/python/simple/

0 commit comments

Comments
 (0)