From c44388e6974e767251cba17a4cf4590be44bc966 Mon Sep 17 00:00:00 2001 From: David Lakin Date: Tue, 27 Aug 2024 17:44:09 -0400 Subject: [PATCH] [configparser] Fix Build Python 3.10 Build The Python 3.10 upgrade in the Base Images also updated the default `setuptools` >= 71.0.0 and its new approach to vendoring dependencies that is not supported by the current configparser backport fuzzer implementations. This fix installs a version of setuptools that is known to work. --- projects/configparser/Dockerfile | 2 +- projects/configparser/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/configparser/Dockerfile b/projects/configparser/Dockerfile index 3928e4b6a7de..b328b69d6370 100644 --- a/projects/configparser/Dockerfile +++ b/projects/configparser/Dockerfile @@ -13,7 +13,7 @@ # 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 +RUN python -m pip install 'setuptools~=69.0' RUN git clone https://github.com/jaraco/configparser/ configparser COPY *.sh *py $SRC/ WORKDIR $SRC/configparser diff --git a/projects/configparser/build.sh b/projects/configparser/build.sh index dd11fafc62bb..50be783e9df1 100644 --- a/projects/configparser/build.sh +++ b/projects/configparser/build.sh @@ -14,7 +14,7 @@ # limitations under the License. # ################################################################################ -pip3 install . +python -m pip install . # Build fuzzers in $OUT. for fuzzer in $(find $SRC -name 'fuzz_*.py'); do compile_python_fuzzer $fuzzer