Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 21f7a4c

Browse filesBrowse files
committed
MacOS fix
1 parent 03a9331 commit 21f7a4c
Copy full SHA for 21f7a4c

File tree

Expand file treeCollapse file tree

1 file changed

+14
-13
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+14
-13
lines changed

‎build-ffmpeg

Copy file name to clipboardExpand all lines: build-ffmpeg
+14-13Lines changed: 14 additions & 13 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.