Skip to content

Commit 21f7a4c

Browse files
committed
MacOS fix
1 parent 03a9331 commit 21f7a4c

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

build-ffmpeg

+14-13
Original file line numberDiff line numberDiff line change
@@ -476,22 +476,23 @@ if command_exists "python3"; then
476476

477477
#check if macOs and brew is available
478478
if [[ "$OSTYPE" == "darwin"* ]]; then
479-
if ! command_exists "brew"; then
479+
if command_exists "brew"; then
480480
brew install python-setuptools meson ninja
481481
MESON_INSTALLED=true
482482
fi
483-
fi
484-
485-
#check if meson and ninja are installed MESON_INSTALLED
486-
if ! $MESON_INSTALLED; then
487-
# meson and ninja can be installed via pip3
488-
execute pip3 install pip setuptools --quiet --upgrade --no-cache-dir --disable-pip-version-check
489-
for r in meson ninja; do
490-
if ! command_exists ${r}; then
491-
execute pip3 install ${r} --quiet --upgrade --no-cache-dir --disable-pip-version-check
492-
fi
493-
export PATH=$PATH:~/Library/Python/3.9/bin
494-
done
483+
else
484+
#check if meson and ninja are installed MESON_INSTALLED AND system is not MacOS
485+
if ! $MESON_INSTALLED; then
486+
487+
# meson and ninja can be installed via pip3
488+
execute pip3 install pip setuptools --quiet --upgrade --no-cache-dir --disable-pip-version-check
489+
for r in meson ninja; do
490+
if ! command_exists ${r}; then
491+
execute pip3 install ${r} --quiet --upgrade --no-cache-dir --disable-pip-version-check
492+
fi
493+
export PATH=$PATH:~/Library/Python/3.9/bin
494+
done
495+
fi
495496
fi
496497

497498
fi

0 commit comments

Comments
 (0)