Skip to content

Commit a2a22b3

Browse files
committed
FIX: Simplify
1 parent d8e276e commit a2a22b3

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tools/install_pre_requirements.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ PLATFORM=$(python -c 'import platform; print(platform.system())')
77

88
echo "Installing pip-pre dependencies on ${PLATFORM}"
99
STD_ARGS="--progress-bar off --upgrade --pre"
10-
QT_BINDING="PySide6"
10+
if [[ "$MNE_QT_BACKEND" == "" ]]; then
11+
MNE_QT_BACKEND="PySide6"
12+
fi
1113

1214
# Dependencies of scientific-python-nightly-wheels are installed here so that
1315
# we can use strict --index-url (instead of --extra-index-url) below
@@ -16,7 +18,7 @@ echo "::group::Prerequisites"
1618
python -m pip install $STD_ARGS pip setuptools packaging \
1719
threadpoolctl cycler fonttools kiwisolver pyparsing pillow python-dateutil \
1820
patsy pytz tzdata nibabel tqdm trx-python joblib numexpr \
19-
"$QT_BINDING!=6.9.1" \
21+
"$MNE_QT_BACKEND!=6.9.1" \
2022
py-cpuinfo blosc2 hatchling "formulaic>=1.1.0" \
2123
matplotlib
2224
python -m pip uninstall -yq numpy
@@ -69,5 +71,5 @@ python -c "import numpy as np; assert np.__version__[0] == '2', np.__version__"
6971
echo "::endgroup::"
7072

7173
echo "::group::Check Qt import"
72-
${SCRIPT_DIR}/check_qt_import.sh "$QT_BINDING"
74+
${SCRIPT_DIR}/check_qt_import.sh "$MNE_QT_BACKEND"
7375
echo "::endgroup::"

0 commit comments

Comments
 (0)