Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Mar 4, 2025
1 parent 0a9fd59 commit 2e6621f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions wheelbuild/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,15 @@ function install_meson {
install_ninja

group_start "Install meson"

if [ -n "$IS_MACOS" ] && [ "$MB_PYTHON_VERSION" == "2.7" ]; then
/opt/homebrew/bin/brew install meson
sudo ln -s /opt/homebrew/bin/meson /usr/local/bin
if [[ "$(uname -m)" == "x86_64" ]]; then
HOMEBREW_PREFIX=/usr/local
else
HOMEBREW_PREFIX=/opt/homebrew
fi
$HOMEBREW_PREFIX/bin/brew install meson
sudo ln -s $HOMEBREW_PREFIX/bin/meson /usr/local/bin
elif [ "$MB_PYTHON_VERSION" == "2.7" ]; then
local python39_exe=$(cpython_path 3.9)/bin/python
$python39_exe -m pip install meson
Expand Down Expand Up @@ -247,6 +253,11 @@ function build_rav1e {
function build_libavif {
LIBAVIF_CMAKE_FLAGS=()

if [ -n "$IS_MACOS" ]; then
for pkg in webp jpeg-xl aom composer gd imagemagick libavif libheif php; do
brew remove --ignore-dependencies $pkg ||:
done
fi
which cmake
cmake --version
if [ -n "$IS_MACOS" ] && [ "$PLAT" == "arm64" ]; then
Expand Down

0 comments on commit 2e6621f

Please sign in to comment.