Skip to content

Commit

Permalink
[configparser] Fix Build Python 3.10 Build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DaveLak committed Aug 28, 2024
1 parent 185ac6b commit c44388e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/configparser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion projects/configparser/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c44388e

Please sign in to comment.