From 80caf3610ed6b4cb39fa4d1c6ccb06e573f9af5a Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 27 Sep 2024 21:56:28 +1000 Subject: [PATCH] Install Python 3.9 --- projects/pillow/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/projects/pillow/Dockerfile b/projects/pillow/Dockerfile index 7c56d0da4d38..efc7e2097327 100644 --- a/projects/pillow/Dockerfile +++ b/projects/pillow/Dockerfile @@ -21,6 +21,9 @@ RUN apt-get update && \ apt-get install -y \ libxau-dev \ pkg-config \ + python3-pip \ + python3.9-dev \ + python3.9-distutils \ rsync RUN git clone --depth 1 https://github.com/python-pillow/Pillow @@ -29,7 +32,8 @@ RUN $SRC/Pillow/Tests/oss-fuzz/build_dictionaries.sh COPY build_depends.sh $SRC -RUN ln -s /bin/true /usr/local/bin/yum_install \ +RUN ln -sf /usr/bin/python3.9 /usr/local/bin/python3 \ + && ln -s /bin/true /usr/local/bin/yum_install \ && ln -s /bin/true /usr/local/bin/yum \ && cd $SRC/Pillow \ && git submodule update --init wheels/multibuild \ @@ -38,7 +42,7 @@ RUN ln -s /bin/true /usr/local/bin/yum_install \ # install extra test images for a better starting corpus RUN cd Pillow/depends && ./install_extra_test_images.sh -RUN python3 -m pip install --upgrade pip +RUN python3 -m pip install --upgrade atheris pyinstaller COPY build.sh $SRC/