Skip to content

Commit

Permalink
install-deps: Get the latest virtualenv in a temporary folder
Browse files Browse the repository at this point in the history
to work around a bug in old virtualenv

Signed-off-by: Oleh Prypin <[email protected]>
  • Loading branch information
oprypin authored and jdurgin committed Jul 13, 2016
1 parent f9a829d commit 2699b6d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2699b6d

Please sign in to comment.