From 9e9d0339a68b5eec3710686a86dbc44d9ba990bd Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 24 Feb 2012 08:14:51 -0800 Subject: [PATCH] Use a bundle to build a .venv in tarball script. Change-Id: If2ae945c10e31fa079cfdfeb69936bc1bb555797 --- tarball_script.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tarball_script.sh b/tarball_script.sh index 521cfac0..b399d002 100755 --- a/tarball_script.sh +++ b/tarball_script.sh @@ -79,6 +79,16 @@ then exit 1 fi +# If there is a bundle file, build a virtualenv from the +# bundle we use for tox +if [ -e ".cache.bundle" ] +then + mv .cache.bundle .cache.pybundle + virtualenv --no-site-packages .venv + .venv/bin/pip install .cache.pybundle + rm .cache.pybundle +fi + VERSIONDIR="$HOME/versions" RECORDFILE="$VERSIONDIR/tarballversions"