File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ function install_ninja {
244244 touch ninja-stamp
245245}
246246
247- function build_rav1e {
247+ function install_rav1e {
248248 if [ -n " $IS_MACOS " ] && [ " $PLAT " == " arm64" ]; then
249249 librav1e_tgz=librav1e-${RAV1E_VERSION} -macos-aarch64.tar.gz
250250 elif [ -n " $IS_MACOS " ]; then
@@ -297,7 +297,15 @@ function build_libavif {
297297 LIBAVIF_CMAKE_FLAGS+=(-DAVIF_CODEC_SVT=LOCAL)
298298 fi
299299
300- # build_rav1e
300+ # Use rav1e binaries for manylinux2010 builds
301+ if [[ " $MB_ML_VER " == " 2010" ]]; then
302+ install_rav1e
303+ fi
304+ # bizarrely, rav1e build fails on macOS arm64 builds specifically for
305+ # python 3.7
306+ if [ " $MB_PYTHON_VERSION " == " 3.7" ] && [ -n " $IS_MACOS " ] && [ " $PLAT " == " arm64" ]; then
307+ install_rav1e
308+ fi
301309
302310 # Force libavif to treat system rav1e as if it were local
303311 if [ -e $BUILD_PREFIX /lib/librav1e.a ]; then
You can’t perform that action at this time.
0 commit comments