Skip to content

Commit

Permalink
ci(wheels): Use CMAKE_IGNORE_PREFIX_PATH instead of uninstalling stuff
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Lewis <[email protected]>
  • Loading branch information
zachlewis committed Oct 15, 2024
1 parent 978e8f0 commit 9783b7f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,11 @@ jobs:
# TODO: Re-enable HEIF when we provide a build recipe that does
# not include GPL-licensed dynamic libraries.
USE_Libheif: 'OFF'
# Make sure the OIIO build's version of freetype is linked
CIBW_BEFORE_ALL: |
brew uninstall --ignore-dependencies harfbuzz fontconfig cairo freetype
# Ignore dependencies installed by homebrew (e.g. freetype)
SKBUILD_CMAKE_ARGS: |
-DOpenImageIO_BUILD_LOCAL_DEPS=TIFF;
-DOpenImageIO_BUILD_MISSING_DEPS=all;
-DCMAKE_IGNORE_PREFIX_PATH: /opt/homebrew
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
Expand Down Expand Up @@ -338,9 +340,11 @@ jobs:
env:
CIBW_BUILD: ${{ matrix.python }}
CIBW_ARCHS: ${{ matrix.arch }}
# Make sure the OIIO build's version of freetype is linked
CIBW_BEFORE_ALL: |
brew uninstall --ignore-dependencies harfbuzz fontconfig cairo freetype
# Ignore dependencies installed by homebrew (e.g. freetype)
SKBUILD_CMAKE_ARGS: |
-DOpenImageIO_BUILD_LOCAL_DEPS=TIFF;
-DOpenImageIO_BUILD_MISSING_DEPS=all;
-DCMAKE_IGNORE_PREFIX_PATH: /opt/homebrew
#TODO: Re-enable the PNG plugin until we can figure out why the system PNG is causing problems
ENABLE_PNG: 'OFF'

Expand Down

0 comments on commit 9783b7f

Please sign in to comment.