diff options
author | Kefu Chai <kchai@redhat.com> | 2019-12-18 11:33:24 +0100 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2019-12-19 04:52:56 +0100 |
commit | 7fec5f7a67c1b09dc34cb8df8eda62d5474cb3ad (patch) | |
tree | 97c8c3d3a044bf18435acfaa7af9f5251b2976cf /install-deps.sh | |
parent | pybind/mgr: remove py27 from envlist in tox.ini (diff) | |
download | ceph-7fec5f7a67c1b09dc34cb8df8eda62d5474cb3ad.tar.xz ceph-7fec5f7a67c1b09dc34cb8df8eda62d5474cb3ad.zip |
install-deps.sh: stop preparing wheels for python2
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'install-deps.sh')
-rwxr-xr-x | install-deps.sh | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/install-deps.sh b/install-deps.sh index a8ae948ffc4..0f0c6c67809 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -466,19 +466,18 @@ function populate_wheelhouse() { function activate_virtualenv() { local top_srcdir=$1 - local interpreter=$2 - local env_dir=$top_srcdir/install-deps-$interpreter + 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 ${env_dir}_tmp + 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 $interpreter $env_dir + ${env_dir}_tmp/bin/virtualenv --python python3 $env_dir rm -rf ${env_dir}_tmp . $env_dir/bin/activate @@ -506,11 +505,9 @@ function preload_wheels_for_tox() { fi fi if test "$require" && ! test -d wheelhouse ; then - for interpreter in python2.7 python3 ; do - type $interpreter > /dev/null 2>&1 || continue - activate_virtualenv $top_srcdir $interpreter || exit 1 - populate_wheelhouse "wheel -w $wip_wheelhouse" $require $constraint || exit 1 - done + type python3 > /dev/null 2>&1 || continue + activate_virtualenv $top_srcdir || exit 1 + populate_wheelhouse "wheel -w $wip_wheelhouse" $require $constraint || exit 1 mv $wip_wheelhouse wheelhouse md5sum $require_files $constraint_files > $md5 fi @@ -531,9 +528,7 @@ if $for_make_check; then find . -name tox.ini | while read ini ; do preload_wheels_for_tox $ini done - for interpreter in python2.7 python3 ; do - rm -rf $top_srcdir/install-deps-$interpreter - done + rm -rf $top_srcdir/install-deps-python3 rm -rf $XDG_CACHE_HOME git --version || (echo "Dashboard uses git to pull dependencies." ; false) fi |