Skip to content

Commit

Permalink
Upgrade Python to 3.10 for newer Django versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo13 committed Dec 20, 2023
1 parent 9412769 commit b2be79f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion projects/django/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@

FROM gcr.io/oss-fuzz-base/base-builder-python

RUN apt-get update && apt-get install -y libgdal26
RUN apt-get update -y \
&& apt-get install -y libgdal26 software-properties-common \
&& add-apt-repository -y ppa:deadsnakes/ppa \
&& apt-get install -y python3.10 python3.10-dev \
&& curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 \
&& python3.10 -m pip install -v --no-cache-dir "atheris>=2.1.1" "pyinstaller==5.0.1" "coverage==6.3.2" \
&& rm -rf /var/lib/apt/lists/*

RUN git clone --depth 1 https://github.com/django/django.git
RUN git clone --depth 1 https://github.com/django/django-fuzzers.git
Expand Down
2 changes: 1 addition & 1 deletion projects/django/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# Build and install project (using current CFLAGS, CXXFLAGS). This is required
# for projects with C extensions so that they're built with the proper flags.
pip3 install .
python3.10 -m pip install .

export DJANGO_SETTINGS_MODULE=fuzzer_project.settings

Expand Down

0 comments on commit b2be79f

Please sign in to comment.