summaryrefslogtreecommitdiffstats
path: root/install-deps.sh
diff options
context:
space:
mode:
authorOleh Prypin <oleh@pryp.in>2016-07-14 00:06:51 +0200
committerJosh Durgin <jdurgin@redhat.com>2016-07-14 01:35:07 +0200
commit2699b6d89b8c1c193fd86b5233d1ea86458753a0 (patch)
tree1b90f56eb38b072e41afad7d1540de1fd95f08c0 /install-deps.sh
parentgoogletest: avoid installing any pieces of it (diff)
downloadceph-2699b6d89b8c1c193fd86b5233d1ea86458753a0.tar.xz
ceph-2699b6d89b8c1c193fd86b5233d1ea86458753a0.zip
install-deps: Get the latest virtualenv in a temporary folder
to work around a bug in old virtualenv Signed-off-by: Oleh Prypin <oleh@pryp.in>
Diffstat (limited to 'install-deps.sh')
-rwxr-xr-xinstall-deps.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/install-deps.sh b/install-deps.sh
index 246aca2ae54..5bdc8c4ff18 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