Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878547 - dev-python/QtPy: defaults to +sql and pulls dev-python/PyQt5[sql] but that is not the default
Summary: dev-python/QtPy: defaults to +sql and pulls dev-python/PyQt5[sql] but that is...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-28 16:45 UTC by Maciej Barć
Modified: 2023-07-07 10:21 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Barć gentoo-dev 2022-10-28 16:45:11 UTC
dev-python/QtPy: defaults to +sql and pulls dev-python/PyQt5[sql] but that is not the default for the second package.

I hit this conflict on my main machine:

emerge: there are no ebuilds built with USE flags to satisfy "dev-python/PyQt5[positioning?,printsupport?,serialport
?,sql?,svg?]".
!!! One of the following packages is required to complete your request:
- dev-python/PyQt5-5.15.6::gentoo (Change USE: +sql)
- dev-python/QtPy-2.2.1::gentoo (Change USE: -sql)

Looks like the relation between dev-python/PyQt5 and dev-python/QtPy was overlooked.

Proposed change: 

diff --git a/dev-python/QtPy/QtPy-2.2.1.ebuild b/dev-python/QtPy/QtPy-2.2.1.ebuild
index 3f913ef7b67..77b95613050 100644
--- a/dev-python/QtPy/QtPy-2.2.1.ebuild
+++ b/dev-python/QtPy/QtPy-2.2.1.ebuild
@@ -21,7 +21,7 @@ KEYWORDS="amd64 ~riscv"

 _IUSE_QT_MODULES="
        designer +gui help multimedia +network opengl positioning
-       printsupport qml quick serialport +sql svg testlib
+       printsupport qml quick serialport sql svg testlib
        webchannel webengine websockets +widgets +xml
 "
 IUSE="+pyqt5 pyqt6 pyside2 pyside6 ${_IUSE_QT_MODULES}"
Comment 1 Ionen Wolkens gentoo-dev 2022-10-28 17:42:04 UTC
fwiw, unlike PyQt5, sql is default on PyQt6 so that works just fine there

although it's partly because of the qtbase:6 layout (not split, and sql is enabled by default -- so it makes little sense to be disabled on PyQt6 beside for bit faster build time)
Comment 2 Andrew Ammerlaan gentoo-dev 2022-10-28 18:46:44 UTC
I'm trying to keep the defaults syncronized between pyside, pyqt, and qtpy. For qt5 there unfortunately already is a discrepency between pyqt5 and pyside2. So i kept the defaults of pyqt6/pyside6 for the newer versions of qtpy.
Comment 3 Ionen Wolkens gentoo-dev 2022-10-28 20:50:24 UTC
Maybe PyQt5 should have a few more defaults instead, it's nearly worthless with everything disabled and almost always have to enable something manually (not that I use qt5 anymore so haven't been bothering me).

Tend to think most stuff that comes from qtbase (dbus, gui, network, opengl, printsupport, sql, widgets, xml) should be enabled given don't get far without base modules, but guess it's debatable.. these bindings can take a while to build too (I'd generally want default qml/declarative too but well, list is getting long).
Comment 4 Ionen Wolkens gentoo-dev 2022-10-28 20:57:36 UTC
(In reply to Ionen Wolkens from comment #3)
> (dbus, gui, network, opengl, printsupport, sql, widgets, xml)
Well, guess opengl can be left to profiles (noticed qtbase:6 has it non-default). qt without gui is generally pretty weird regardless of profiles though
Comment 5 Maciej Barć gentoo-dev 2022-10-28 22:20:36 UTC
(In reply to Ionen Wolkens from comment #3)
> Maybe PyQt5 should have a few more defaults instead, it's nearly worthless
> with everything disabled and almost always have to enable something manually
> (not that I use qt5 anymore so haven't been bothering me).
> 
> Tend to think most stuff that comes from qtbase (dbus, gui, network, opengl,
> printsupport, sql, widgets, xml) should be enabled given don't get far
> without base modules, but guess it's debatable.. these bindings can take a
> while to build too (I'd generally want default qml/declarative too but well,
> list is getting long).

I think it is a good idea.

So maybe for now it would be better to add +sql to dev-python/PyQt5 instead of removing it from dev-python/QtPy.
Comment 6 Maciej Barć gentoo-dev 2023-07-07 10:21:06 UTC
Looks like this issue is still present in ::gentoo.