]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
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)
commit3562504afd69781a3baf9dc7eac2ead215ddc83a
tree9c27c5ab97c7c913e40db3e4fc953fa52565a6e8
parenta576f9bbc2be2d1b7ebbd55fd8893ee60e7c9800
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 <kchai@redhat.com>
install-deps.sh