use python3-venv in tox()

This commit is contained in:
Benjamin Dauvergne 2020-08-31 11:05:57 +02:00
parent bdf18980aa
commit 04c88e6a41
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
def call() {
tmpdir = env.TMPDIR ? env.TMPDIR : '.'
sh """
virtualenv -p python3 ${tmpdir}/venv/
python3 -m venv ${tmpdir}/venv/
${tmpdir}/venv/bin/pip install tox
PGPORT=`python -c 'import struct; import socket; s=socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_LINGER, struct.pack("ii", 1, 0)); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'` pg_virtualenv -o fsync=off ${tmpdir}/venv/bin/tox -rv"""
}