File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments