🔧 run: Use temporary virtualenv

master
Gerber, Mike 5 years ago
parent 5ceacc4cc8
commit 4796aa3cd5

10
run

@ -1,5 +1,11 @@
#!/bin/sh
virtualenv -p /usr/bin/python3 ~/.virtualenvs/test-nvidia
. ~/.virtualenvs/test-nvidia/bin/activate
vdir=`mktemp -d /tmp/test-nvidia.XXXXXX`
virtualenv -p /usr/bin/python3 $vdir
. $vdir/bin/activate
pip3 install -r requirements.txt
python3 test-nvidia
rm -rf $vdir

Loading…
Cancel
Save