File tree 1 file changed +14
-13
lines changed
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
476
476
477
477
# check if macOs and brew is available
478
478
if [[ " $OSTYPE " == " darwin" * ]]; then
479
- if ! command_exists " brew" ; then
479
+ if command_exists " brew" ; then
480
480
brew install python-setuptools meson ninja
481
481
MESON_INSTALLED=true
482
482
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
495
496
fi
496
497
497
498
fi
You can’t perform that action at this time.
0 commit comments