[install bug]Fix directory changed when installing env

The current directory is changed when install_rally.sh installs
virtual environment, so if we use ./install_rally.sh, $BASEDIR
will be an error directory when we decide whether downloading rally.

Change-Id: I5939c9e1cb93209057c34c9617d0c03512ebb52f
This commit is contained in:
chenhb-zte 2017-01-25 16:15:55 +08:00
parent 3adc20096e
commit fa7b5b0407

View File

@ -423,7 +423,7 @@ __EOF__
"$PYTHON" "$VIRTUALENV_DST" $VERBOSE --no-setuptools --no-pip --no-wheel \
-p "$PYTHON" "$DESTDIR"
cd "${DESTDIR}" && . bin/activate
. "$DESTDIR/bin/activate"
download - https://bootstrap.pypa.io/get-pip.py | python -\
|| die $EX_PROTOCOL \