Merge "Recent virtualenv review cleanups"

This commit is contained in:
Jenkins 2015-02-23 01:26:30 +00:00 committed by Gerrit Code Review
commit 889f604642
5 changed files with 6 additions and 29 deletions

View File

@ -1,6 +1,6 @@
libffi-devel # pyOpenSSL libffi-devel # pyOpenSSL
libopenssl-devel # pyOpenSSL libopenssl-devel # pyOpenSSL
libxml2-devel # lxml libxml2-devel # lxml
libxslt-dev # lxml libxslt-devel # lxml
postgresql-devel # psycopg2 postgresql-devel # psycopg2
python-devel # pyOpenSSL python-devel # pyOpenSSL

View File

@ -102,7 +102,7 @@ EOF
fi fi
# Install Python client module # Install Python client module
pip_install MySQL-python psycopg2 pip_install psycopg2
} }
function database_connection_url_postgresql { function database_connection_url_postgresql {

View File

@ -677,14 +677,8 @@ source $TOP_DIR/tools/fixup_stuff.sh
# Virtual Environment # Virtual Environment
# ------------------- # -------------------
# Temporary hack for testing
# This belongs in d-g functions.sh setup_host() or devstack-vm-gate.sh
if [[ -d /var/cache/pip ]]; then
sudo chown -R $STACK_USER:$STACK_USER /var/cache/pip
fi
# Pre-build some problematic wheels # Pre-build some problematic wheels
if [[ ! -d ${WHEELHOUSE:-} ]]; then if [[ -n ${WHEELHOUSE:-} && ! -d ${WHEELHOUSE:-} ]]; then
source $TOP_DIR/tools/build_wheels.sh source $TOP_DIR/tools/build_wheels.sh
fi fi

View File

@ -34,26 +34,13 @@ if [[ -z "$TOP_DIR" ]]; then
source $TOP_DIR/stackrc source $TOP_DIR/stackrc
trap err_trap ERR
fi fi
# Exit on any errors so that errors don't compound
function err_trap {
local r=$?
set +o xtrace
rm -rf $TMP_VENV_PATH
exit $r
}
# Build new venv # Build new venv
virtualenv $VENV_DEST virtualenv $VENV_DEST
# Install modern pip # Install modern pip
$VENV_DEST/bin/pip install -U pip PIP_VIRTUAL_ENV=$VENV_DEST pip_install -U pip
for pkg in ${MORE_PACKAGES}; do # Install additional packages
pip_install_venv $VENV_DEST $pkg PIP_VIRTUAL_ENV=$VENV_DEST pip_install ${MORE_PACKAGES}
done

View File

@ -36,10 +36,6 @@ fi
# Get additional packages to build # Get additional packages to build
MORE_PACKAGES="$@" MORE_PACKAGES="$@"
# Set a fall-back default, assume that since this script is being called
# package builds are to happen even if WHEELHOUSE is not configured
export WHEELHOUSE=${WHEELHOUSE:-.wheelhouse}
# Exit on any errors so that errors don't compound # Exit on any errors so that errors don't compound
function err_trap { function err_trap {
local r=$? local r=$?