Skip to content

Commit

Permalink
[pyzmq] Fix Python 3.10 Build
Browse files Browse the repository at this point in the history
Installs the missing `libzmq3-dev` dependency required to build and
install `pyzmq` from a source checkout.
  • Loading branch information
DaveLak committed Aug 28, 2024
1 parent c44388e commit 41b04bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions projects/pyzmq/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:/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:/zeromq/pyzmq pyzmq
COPY *.sh *py $SRC/
WORKDIR $SRC/pyzmq
5 changes: 3 additions & 2 deletions projects/pyzmq/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 41b04bf

Please sign in to comment.