mirror of https://github.com/google/oss-fuzz.git
Upgrade Python to 3.10 for newer Django versions. (#11391)
This commit is contained in:
parent
97887109e4
commit
4016dacde1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue