Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688184 - dev-python/QtPy needs to depend on dev-python/PyQtWebEngine as alternative to/instead of dev-python/PyQt5[webengine?]
Summary: dev-python/QtPy needs to depend on dev-python/PyQtWebEngine as alternative to...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-16 22:12 UTC by Daniel Dawson
Modified: 2019-06-29 21:34 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info.txt,17.89 KB, text/plain)
2019-06-16 22:12 UTC, Daniel Dawson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Dawson 2019-06-16 22:12:31 UTC
Created attachment 579950 [details]
emerge --info

Since 5.12, PyQt5 has separated QtWebEngine support into its own package (dev-python/PyQtWebEngine), and the "webengine" USE flag has been removed. https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-python/PyQt5?id=1252c19b894ba758e02a5efe468b9771bc76923c

QtPy ebuild has not yet been updated, so it will only install with previous versions of PyQt5, even if the USE flag is not enabled.
Comment 1 Daniel Dawson 2019-06-18 23:27:51 UTC
Wait, the new summary is wrong. It already has that dependency, but I'm told it needs an alternative for dev-python/PyQtWebEngine. I'm not sure exactly what it would look like, though, which is why I didn't want to be too specific.
Comment 2 Jouni Kosonen 2019-06-21 10:28:36 UTC
(In reply to Daniel Dawson from comment #1)
> Wait, the new summary is wrong. It already has that dependency, but I'm told
> it needs an alternative for dev-python/PyQtWebEngine. I'm not sure exactly
> what it would look like, though, which is why I didn't want to be too
> specific.

I'm using this locally, because the ebuild doesn't have to support older PyQt5:

--- a/dev-python/QtPy/QtPy-1.4.0-r1.ebuild
+++ b/dev-python/QtPy/QtPy-1.4.0-r2.ebuild
@@ -17,7 +17,8 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="designer gui opengl svg testlib webkit webengine"
 
 RDEPEND="
-       dev-python/PyQt5[${PYTHON_USEDEP},designer?,opengl?,svg?,webkit?,webengine?]
+       >=dev-python/PyQt5-5.12.1[${PYTHON_USEDEP},designer?,opengl?,svg?,webkit?]
+       webengine? ( dev-python/PyQtWebEngine[${PYTHON_USEDEP}] )
        gui? ( dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] )
        testlib? ( dev-python/PyQt5[${PYTHON_USEDEP},testlib] )
 "
Comment 3 Daniel Dawson 2019-06-21 22:32:16 UTC
(In reply to Jouni Kosonen from comment #2)
> --- a/dev-python/QtPy/QtPy-1.4.0-r1.ebuild
> +++ b/dev-python/QtPy/QtPy-1.4.0-r2.ebuild
> @@ -17,7 +17,8 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
>  IUSE="designer gui opengl svg testlib webkit webengine"
>  
>  RDEPEND="
> -      
> dev-python/PyQt5[${PYTHON_USEDEP},designer?,opengl?,svg?,webkit?,webengine?]
> +      
> >=dev-python/PyQt5-5.12.1[${PYTHON_USEDEP},designer?,opengl?,svg?,webkit?]
> +       webengine? ( dev-python/PyQtWebEngine[${PYTHON_USEDEP}] )
>         gui? ( dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] )
>         testlib? ( dev-python/PyQt5[${PYTHON_USEDEP},testlib] )
>  "

Not sure if Gentoo wants to abandon old PyQt5 yet, but this works for me.
Comment 4 Larry the Git Cow gentoo-dev 2019-06-29 21:34:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=594f2a57870e20d8ab968d73391d12b8e450c3b7

commit 594f2a57870e20d8ab968d73391d12b8e450c3b7
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-06-29 21:03:01 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-06-29 21:33:54 +0000

    dev-python/QtPy: 1.4.2 version bump, EAPI-7, fixing USE=webengine
    
    Closes: https://bugs.gentoo.org/688184
    Package-Manager: Portage-2.3.67, Repoman-2.3.16
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-python/QtPy/Manifest          |  1 +
 dev-python/QtPy/QtPy-1.4.2.ebuild | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)