From: Oleh Prypin Date: Wed, 13 Jul 2016 22:06:51 +0000 (+0300) Subject: install-deps: Get the latest virtualenv in a temporary folder X-Git-Tag: ses5-milestone5~397^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10289%2Fhead;p=ceph.git install-deps: Get the latest virtualenv in a temporary folder to work around a bug in old virtualenv Signed-off-by: Oleh Prypin --- diff --git a/install-deps.sh b/install-deps.sh index 246aca2ae548..5bdc8c4ff18d 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -146,7 +146,14 @@ function activate_virtualenv() { local env_dir=$top_srcdir/install-deps-$interpreter if ! test -d $env_dir ; then - virtualenv --python $interpreter $env_dir + # Make a temporary virtualenv to get a fresh version of virtualenv + # because CentOS 7 has a buggy old version (v1.10.1) + # https://github.com/pypa/virtualenv/issues/463 + virtualenv ${env_dir}_tmp + ${env_dir}_tmp/bin/pip install --upgrade virtualenv + ${env_dir}_tmp/bin/virtualenv --python $interpreter $env_dir + rm -rf ${env_dir}_tmp + . $env_dir/bin/activate if ! populate_wheelhouse install ; then rm -rf $env_dir