Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

radarhere
Copy link
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
24 checks passed
@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 <[email protected]>
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