From: Kefu Chai Date: Mon, 26 Aug 2019 03:36:50 +0000 (+0800) Subject: install-deps.sh: download wheel using 'pip wheel' X-Git-Tag: v15.1.0~1765^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3562504afd69781a3baf9dc7eac2ead215ddc83a;p=ceph-ci.git install-deps.sh: download wheel using 'pip wheel' otherwise we will fail to install the build dependencies of `lazy-object-proxy` from the wheelhouse. as `lazy-object-proxy` does not add `setuptools_scm` in its `setup.py`, instead it lists `setuptools_scm` in `setup.cfg` and `pyproject.toml` as a `build-system` requires. but unfortunately, `pip download` only downloads the install/run-time dependencies at this moment. and `lazy-object-proxy` does not offer binary package for at least python2.7. ideally, `pip download` should collects its dependencies like Collecting setuptools_scm>=3.3.1 (from lazy-object-proxy->astroid<3,>=2.2.0->pylint->-r requirements-lint.txt (line 1)) so we need to use `pip wheel` do download build-time dependencies see also https://github.com/pypa/pip/issues/6222 Signed-off-by: Kefu Chai --- diff --git a/install-deps.sh b/install-deps.sh index f116c213b64..56cb67f5ae1 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -501,7 +501,7 @@ find . -name tox.ini | while read ini ; do for interpreter in python2.7 python3 ; do type $interpreter > /dev/null 2>&1 || continue activate_virtualenv $top_srcdir $interpreter || exit 1 - populate_wheelhouse "download -d $wip_wheelhouse" $require $constraint || exit 1 + populate_wheelhouse "wheel -w $wip_wheelhouse" $require $constraint || exit 1 done mv $wip_wheelhouse wheelhouse md5sum $require_files $constraint_files > $md5