so we don't need to use virtualenv python package for creating a
virtualenv, the "venv" module in Python3 would suffice.
see also https://docs.python.org/3/library/venv.html
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
f9514e3386fe1907e240d7079f2251f9cd419cb3)
#!/bin/sh
set -e
-if ! command -v virtualenv >/dev/null; then
- echo "$0: virtualenv not installed, skipping python-using tests." 1>&2
- exit 1
-fi
-
SRCDIR="$(dirname "$0")"
# build directory, if different, can be passed as an argument;
# patched cram to support that. See upstream ticket at
# https://bitbucket.org/brodie/cram/issue/9/allow-read-only-directories-for-t
# -- tv@inktank.com
- virtualenv --python python3 "$VENV" && $VENV/bin/pip --log "$VENV"/log.txt \
+ python3 -m venv "$VENV" && $VENV/bin/pip --log "$VENV"/log.txt \
install git+https://github.com/ceph/cram.git@0.7-error-dir#egg=cram
fi