Commit
343cc792e847ca8901f6c08e41799a2fbbd2ca92 switched us from pip
-E to virtualenv, to keep up with the Python ecosystem, but left in
this old check for existence of "pip" as a command. We don't strictly
need that; what we need is a "virtualenv" command. PIP will be
available inside the virtualenv, by the time we get around to running
it. Check for virtualenv instead.
Signed-off-by: Tommi Virtanen <tv@inktank.com>
#!/bin/sh
set -e
-if ! command -v pip >/dev/null; then
- echo "$0: PIP not installed, skipping python-using tests." 1>&2
+if ! command -v virtualenv >/dev/null; then
+ echo "$0: virtualenv not installed, skipping python-using tests." 1>&2
exit 1
fi
VENV="$BUILDDIR/virtualenv"
CRAM_BIN="$VENV/bin/cram"
if [ ! -e "$CRAM_BIN" ]; then
-# pip -E "$VENV" install "$SRCDIR/downloads/cram-0.5.0ceph.2011-01-14.tar.gz"
virtualenv "$VENV" && $VENV/bin/pip install "$SRCDIR/downloads/cram-0.5.0ceph.2011-01-14.tar.gz"
fi