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