Skip to content

Commit e6daa20

Browse files
authored
[pygments] Upgrade pip to fix broken build (google#11764)
It looks like the `pygments` build has the same toml parsing issue as I described in c3bedd8, i.e. the outdated `pip` was unable to parse `pyproject.toml` syntax. But curiously, the this hasn't been an issue until the most recent (at the time of writing) build on 2024-03-30 [log](https://oss-fuzz-build-logs.storage.googleapis.com/log-8bec1e41-343e-4d95-ae29-6341c23e27af.txt) and prior builds (e.g. 2024-03-29 [log](https://oss-fuzz-build-logs.storage.googleapis.com/log-9a057fc1-c280-44d3-808f-5069c35af146.txt)) listed on https://oss-fuzz-build-logs.storage.googleapis.com/index.html#pygments seem to have been fine? I wonder if something changed somewhere and more projects that don't upgrade pip will begin failing? In any case, this fixes the build. Tested locally with `python infra/helper.py check_build pygments`.
1 parent c179c66 commit e6daa20

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

projects/pygments/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ RUN git clone \
2121
--branch master \
2222
https://github.com/pygments/pygments.git
2323

24+
RUN python3 -m pip install --upgrade pip
25+
2426
WORKDIR pygments
2527

2628
RUN git clone --depth 1 https://github.com/google/fuzzing

projects/pygments/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
################################################################################
1717

1818
# Build and install project (using current CFLAGS, CXXFLAGS).
19-
pip3 install .
19+
python3 -m pip install .
2020

2121
# Build fuzzers in $OUT.
2222
for fuzzer in $(find $SRC -name 'fuzz_*.py'); do

0 commit comments

Comments
 (0)