summaryrefslogtreecommitdiff
path: root/dev-python/pillow/files/pillow-4.3.0-no-qt.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pillow/files/pillow-4.3.0-no-qt.patch')
-rw-r--r--dev-python/pillow/files/pillow-4.3.0-no-qt.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-python/pillow/files/pillow-4.3.0-no-qt.patch b/dev-python/pillow/files/pillow-4.3.0-no-qt.patch
new file mode 100644
index 000000000000..231c605b8347
--- /dev/null
+++ b/dev-python/pillow/files/pillow-4.3.0-no-qt.patch
@@ -0,0 +1,30 @@
+diff --git a/PIL/ImageQt.py b/PIL/ImageQt.py
+index 36b4e1eb..ddde2cd9 100644
+--- a/PIL/ImageQt.py
++++ b/PIL/ImageQt.py
+@@ -20,24 +20,7 @@ from . import Image
+ from ._util import isPath
+ from io import BytesIO
+
+-qt_is_installed = True
+-qt_version = None
+-try:
+- from PyQt5.QtGui import QImage, qRgba, QPixmap
+- from PyQt5.QtCore import QBuffer, QIODevice
+- qt_version = '5'
+-except (ImportError, RuntimeError):
+- try:
+- from PyQt4.QtGui import QImage, qRgba, QPixmap
+- from PyQt4.QtCore import QBuffer, QIODevice
+- qt_version = '4'
+- except (ImportError, RuntimeError):
+- try:
+- from PySide.QtGui import QImage, qRgba, QPixmap
+- from PySide.QtCore import QBuffer, QIODevice
+- qt_version = 'side'
+- except ImportError:
+- qt_is_installed = False
++qt_is_installed = False
+
+
+ def rgb(r, g, b, a=255):