]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: remove the workaround to bootstrap a new venv 33905/head
authorKefu Chai <kchai@redhat.com>
Thu, 12 Mar 2020 06:33:44 +0000 (14:33 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 12 Mar 2020 06:52:13 +0000 (14:52 +0800)
el7 now ships python36-virtualenv-15.1.0-4 which contains the fix of
https://github.com/pypa/virtualenv/issues/463

Signed-off-by: Kefu Chai <kchai@redhat.com>
install-deps.sh

index 9ea811abc959eefa5bc530dd9fb3963886b59cd9..fb377af75618829f58ddbb387391369ebbe2c355 100755 (executable)
@@ -434,17 +434,7 @@ function activate_virtualenv() {
     local env_dir=$top_srcdir/install-deps-python3
 
     if ! test -d $env_dir ; then
-        # 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 --python=python3 ${env_dir}_tmp
-        # install setuptools before upgrading virtualenv, as the latter needs
-        # a recent setuptools for setup commands like `extras_require`.
-        ${env_dir}_tmp/bin/pip install --upgrade setuptools
-        ${env_dir}_tmp/bin/pip install --upgrade virtualenv
-        ${env_dir}_tmp/bin/virtualenv --python python3 $env_dir
-        rm -rf ${env_dir}_tmp
-
+        virtualenv --python=python3 ${env_dir}
         . $env_dir/bin/activate
         if ! populate_wheelhouse install ; then
             rm -rf $env_dir