echo "Workspace is $WORKSPACE"
fi
+# We need a recent setuptools. Older ones replace + with - in our
+# version numbers, making them non-PEP-440-compliant and
+# non-uploadable.
+VENV=$(mktemp -d)
+echo "Using virtualenv $VENV"
+virtualenv "$VENV"
+. "$VENV/bin/activate"
+
version_from_git() {
# Generates a version number from the git log for the current working
# directory, and writes it to stdout.
fi
fi
-# clean up temporary GOPATH
+# clean up temporary GOPATH and VENV
rm -rf "$GOPATH"
+rm -rf "$VENV"
exit $EXITCODE