Avoid compiling numpy if arm 64/70464/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sat, 4 Jul 2020 09:43:30 +0000 (11:43 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sat, 4 Jul 2020 09:43:30 +0000 (11:43 +0200)
It reaches Travis-ci timeouts

Change-Id: I30405cc1cd603a9dee96674d350d04eeb39e6add
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
docker/smoke/Dockerfile

index 2c6f505..ae4e686 100644 (file)
@@ -20,7 +20,8 @@ RUN apk --no-cache add --update libxml2 libxslt && \
         openssl-dev libjpeg-turbo-dev libxml2-dev libxslt-dev && \
     case $(uname -m) in aarch*|arm*) CFLAGS="-O0" \
         pip3 install --no-cache-dir -c/src/requirements/upper-constraints.txt \
-        -c/src/functest/upper-constraints.txt lxml ;; esac && \
+        -c/src/functest/upper-constraints.txt lxml && \
+        sed -i -E /^numpy=/d /src/requirements/upper-constraints.txt && apk add py3-numpy ;; esac && \
     git init /src/patrole && \
     (cd /src/patrole && \
         git fetch --tags https://opendev.org/openstack/patrole.git $PATROLE_TAG && \