Skip to content

Do not attempt to install cmake if it is already present#8593

Merged
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:brew
Dec 13, 2024
Merged

Do not attempt to install cmake if it is already present#8593
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:brew

Conversation

@radarhere
Copy link
Copy Markdown
Member

Updates multibuild to include multi-build/multibuild#542, so that if cmake is already available, the multibuild get_modern_cmake function does not attempt to install it when build_openjpeg or build_libjpeg_turbo is called.

The cmake install attempt on macOS uses brew, so this removes lines from the macOS wheel build like https://github.com/python-pillow/Pillow/actions/runs/12268369479/job/34230079347#step:5:4042

wheels/multibuild/library_builders.sh: line 203: brew: command not found

@hugovk hugovk added the Build label Dec 13, 2024
@hugovk hugovk merged commit bc8e581 into python-pillow:main Dec 13, 2024
@radarhere radarhere deleted the brew branch December 13, 2024 11:38
DavidKorczynski pushed a commit to google/oss-fuzz that referenced this pull request Jan 4, 2025
https://github.com/google/oss-fuzz/blob/2ef5c1fd8bb77f86866069ddf063e9b0efcc7256/projects/pillow/Dockerfile#L32-L33

These lines can be removed. Pillow no longer needs to suppress errors
when calling yum.

They would have been there originally because
- multibuild called `yum_install` for installing
[zlib](https://github.com/multi-build/multibuild/blob/42d761728d141d8462cd9943f4329f12fe62b155/library_builders.sh#L144)
and
[`cmake`](https://github.com/multi-build/multibuild/blob/42d761728d141d8462cd9943f4329f12fe62b155/library_builders.sh#L217),
but python-pillow/pillow-wheels#204 and
python-pillow/Pillow#8593 mean that those are
used anymore.
- Pillow called `yum` to remove zlib-devel, but that is no longer the
case after python-pillow/Pillow#8658

cc @hugovk

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants