Opened 6 years ago
Last modified 5 years ago
#57823 closed enhancement
py-qtpy: allow py-pyside2 instead of py-pyqt5 — at Initial Version
Reported by: | chrstphrchvz (Christopher Chavez) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | py-qtpy py-pyqt5 py-pyside2 |
Description
Since QtPy supports PySide2 (which is now Qt's official bindings for Python) in addition to PyQt5, should it be possible for the py-qtpy
port (as well as any ports using it, e.g. Spyder) to allow py-pyside2
as a substitute for py-pyqt5
? I am not an expert on their differences, nor do I have any preference that PySide2 become MacPorts' default over PyQt5.
If so, I imagine adding a variant qtpy +pyside2
would be the approach for this (similar to what py-matplotlib
has, though it doesn't use QtPy). However if the py-qtpy
port is what ensures a Qt backend is installed, should that dependency then be removed from ports depending on qtpy (spyder
and spyder-devel
), or is the PyQt5 dependency used to ensure a Qt5 backend is present—i.e. when Qt4 can't be used?