Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changes/dev/13960.dependency.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Switch the default Qt bindings from PyQt6 to PySide6. As a result, ``mne[full]`` now includes PySide6 instead of PyQt6. Users who prefer PyQt6 can continue to use ``mne[full-pyqt6]``, and ``mne[full-pyside6]`` remains available as an alias for ``mne[full]``. Changes by `Clemens Brunner`_.
11 changes: 5 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,11 @@ scripts = {mne = "mne.commands.utils:main"}
[project.optional-dependencies]
# Leave this one here for backward-compat
data = []
full = ["mne[full-no-qt]", "PyQt6 != 6.6.0", "PyQt6-Qt6 != 6.6.0, != 6.7.0"]
full = ["mne[full-no-qt]", "PySide6 != 6.7.0, != 6.8.0, != 6.8.0.1, != 6.9.1"]
# Dependencies for full MNE-Python functionality (other than raw/epochs export)
# We first define a variant without any Qt bindings. The "complete" variant, mne[full],
# makes an opinionated choice and installs PyQt6.
# We also offer two more variants: mne[full-qt6] (which is equivalent to mne[full]),
# and mne[full-pyside6], which will install PySide6 instead of PyQt6.
# makes an opinionated choice and installs PySide6.
# We also offer mne[full-pyqt6], which will install PyQt6 instead of PySide6.
full-no-qt = [
"antio >= 0.5.0",
"curryreader >= 0.1.2",
Expand Down Expand Up @@ -191,8 +190,8 @@ full-no-qt = [
"vtk >= 9.2",
"xlrd",
]
full-pyqt6 = ["mne[full]"]
full-pyside6 = ["mne[full-no-qt]", "PySide6 != 6.7.0, != 6.8.0, != 6.8.0.1, != 6.9.1"]
full-pyqt6 = ["mne[full-no-qt]", "PyQt6 != 6.6.0", "PyQt6-Qt6 != 6.6.0, != 6.7.0"]
full-pyside6 = ["mne[full]"]
# Dependencies for MNE-Python functions that use HDF5 I/O
hdf5 = ["h5io >= 0.2.4", "pymatreader"]

Expand Down
5 changes: 3 additions & 2 deletions tools/hooks/update_environment_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
pyproj = tomllib.load(fid)

# Get our "full" dependences from `pyproject.toml`, but actually ignore the
# "full" section as it's just "full-noqt" plus PyQt6, and for conda we need PySide
ignore = ("full", "full-pyqt6")
# "full-pyqt6" section as it's just "full-noqt" plus PyQt6. Also ignore "full-pyside6"
# as it's just a redirect to "full".
ignore = ("full-pyqt6", "full-pyside6")
deps = set(pyproj["project"]["dependencies"])
for section, section_deps in pyproj["project"]["optional-dependencies"].items():
if section not in ignore:
Expand Down
Loading