]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: download wheel using 'pip wheel' 29903/head
authorKefu Chai <kchai@redhat.com>
Mon, 26 Aug 2019 03:36:50 +0000 (11:36 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 26 Aug 2019 15:06:39 +0000 (23:06 +0800)
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 <kchai@redhat.com>
install-deps.sh

index f116c213b64c9e8ddda1e601dcc2ecfe64faaf21..56cb67f5ae1d1a8a9382f101b4c84d994061c342 100755 (executable)
@@ -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