From 2ac36ff4b0e8dbd4469d09ba21d1595027c8df9f Mon Sep 17 00:00:00 2001 From: David Lakin Date: Tue, 27 Aug 2024 22:17:16 -0400 Subject: [PATCH] [pyzmq] Fix Python 3.10 Build Installs the missing `libzmq3-dev` dependency required to build and install `pyzmq` from a source checkout. --- projects/pyzmq/Dockerfile | 5 +++-- projects/pyzmq/build.sh | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/projects/pyzmq/Dockerfile b/projects/pyzmq/Dockerfile index 710555f0a40a..bb16d8bf1cbd 100644 --- a/projects/pyzmq/Dockerfile +++ b/projects/pyzmq/Dockerfile @@ -13,7 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. FROM gcr.io/oss-fuzz-base/base-builder-python -RUN pip3 install --upgrade pip cython -RUN git clone https://github.com/zeromq/pyzmq pyzmq +RUN apt-get update && apt-get install -y libzmq3-dev +RUN python -m pip install cython +RUN git clone --depth 1 --branch main https://github.com/zeromq/pyzmq pyzmq COPY *.sh *py $SRC/ WORKDIR $SRC/pyzmq diff --git a/projects/pyzmq/build.sh b/projects/pyzmq/build.sh index 83cdadf8cadb..ac81d920ad6c 100644 --- a/projects/pyzmq/build.sh +++ b/projects/pyzmq/build.sh @@ -14,7 +14,8 @@ # limitations under the License. # ################################################################################ -pip3 install . +python -m pip install . + for fuzzer in $(find $SRC -name 'fuzz_*.py'); do - compile_python_fuzzer $fuzzer + compile_python_fuzzer $fuzzer --collect-all="pyzmq" done