Skip to content

Commit a0c9a48

Browse files
committed
continue to use rav1e binaries for manylinux2010 & macos arm python 3.7
1 parent 6fdb1c7 commit a0c9a48

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

wheelbuild/config.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)