From c4fe11104fe391a62ade3f0ba0e03cd6ffcef724 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Wed, 18 Jul 2018 21:14:09 +0100 Subject: [PATCH] requirements.sh: ignore scipy and scikit-learn 'scikit-learn' requires 'numpy' and 'scipy' packages. Which take long time to build. We need 'numpy' for nova image but can ignore rest (they are needed by 'monasca_analytics' project we do not use). On x86-64 architecture all those packages come as binaries from Pypi. Change-Id: I36b6ca9d094f83d48e7fa41a7818441169bd04e6 --- scripts/requirements.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/requirements.sh b/scripts/requirements.sh index 7958ba7..f1a9fbb 100755 --- a/scripts/requirements.sh +++ b/scripts/requirements.sh @@ -26,7 +26,9 @@ pushd $(mktemp -d) # NOTE(SamYaple): Build all deps in parallel. This is safe because we are # constrained on the version and we are building with --no-deps export CASS_DRIVER_BUILD_CONCURRENCY=8 -split -l1 /upper-constraints.txt +# NOTE(hrw): Drop python packages requested by monasca_analytics. Their +# build time is huge and on !x86 we do not get binaries from Pypi. +egrep -v "(scipy|scikit-learn)" /upper-constraints.txt | split -l1 echo uwsgi enum-compat ${PIP_PACKAGES} | xargs -n1 | split -l1 -a3 ls -1 | xargs -n1 -P20 -t bash -c 'pip wheel --no-deps --wheel-dir / -c /upper-constraints.txt -r $1 || echo %1 >> /failure' _ | tee /tmp/wheels.txt