From e10473c061f2c13fb17532c8784a410bceb7e05f Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Sat, 11 Mar 2023 18:28:33 +0000 Subject: [PATCH] scipy: fix build (#9910) Signed-off-by: David Korczynski --- projects/scipy/Dockerfile | 8 +++++++- projects/scipy/build.sh | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/projects/scipy/Dockerfile b/projects/scipy/Dockerfile index fd1047ebe..940ababa9 100644 --- a/projects/scipy/Dockerfile +++ b/projects/scipy/Dockerfile @@ -15,7 +15,13 @@ FROM gcr.io/oss-fuzz-base/base-builder-python RUN apt-get update && apt-get install -y \ gfortran libopenblas-dev liblapack-dev pkg-config -RUN pip3 install --upgrade pip numpy +# Ensure we work from right python version +RUN apt-get install -y python3.9 python3.9-dev && \ + ln --force -s /usr/bin/python3.9 /usr/local/bin/python3 && \ + apt-get install -y python3-pip && \ + python3 -m pip install cython "atheris>=2.1.1" "pyinstaller==5.0.1" "coverage==6.3.2" +RUN python3 -m pip install --upgrade pip setuptools meson ninja numpy pybind11 cython pythran setuptools_scm + RUN git clone https://github.com/scipy/scipy scipy COPY *.sh *py $SRC/ WORKDIR $SRC/scipy diff --git a/projects/scipy/build.sh b/projects/scipy/build.sh index 780299da0..2819b5771 100644 --- a/projects/scipy/build.sh +++ b/projects/scipy/build.sh @@ -16,7 +16,7 @@ ############################################################################### git submodule update --init -pip3 install . +python3 -m pip install . # Build fuzzers in $OUT. for fuzzer in $(find $SRC -name 'fuzz_*.py'); do