[packages/python-PyQt5] - ugly dep but needed

arekm arekm at pld-linux.org
Sun Aug 12 11:47:49 CEST 2018


commit c131c8d9d29c4063b439b2a7b92a67f798bed8e8
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Aug 12 11:47:35 2018 +0200

    - ugly dep but needed

 python-PyQt5.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/python-PyQt5.spec b/python-PyQt5.spec
index e08ab99..aea40dd 100644
--- a/python-PyQt5.spec
+++ b/python-PyQt5.spec
@@ -56,6 +56,10 @@ BuildRequires:	Qt5Xml-devel >= %{qt_ver}
 BuildRequires:	Qt5XmlPatterns-devel >= %{qt_ver}
 BuildRequires:	dbus-devel >= 1
 BuildRequires:	pkgconfig
+# configure.py does: "from PyQt5 import sip" but sip doesn't provide PyQt5/__init__.py file,
+# and thus sip cannot be import. That's why we require python-PyQt5 (which provides __init__.py)
+# here. Only for python2 since python3 can import from directory without __init__.py file.
+%{?with_python2:BuildRequires:  python-PyQt5 >= 5.11.2}
 BuildRequires:	python-dbus-devel >= 0.80
 BuildRequires:	python-sip-devel >= %{sip_ver}
 BuildRequires:	python3-dbus >= 0.80
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-PyQt5.git/commitdiff/c131c8d9d29c4063b439b2a7b92a67f798bed8e8



More information about the pld-cvs-commit mailing list