]> git.pld-linux.org Git - packages/python-pillow.git/blob - python-pillow-subpackage.patch
- remove unneccessary cleanups from install
[packages/python-pillow.git] / python-pillow-subpackage.patch
1 --- Pillow-6.2.2/src/PIL/__init__.py.orig       2020-01-02 09:33:30.000000000 +0100
2 +++ Pillow-6.2.2/src/PIL/__init__.py    2020-01-17 15:43:39.054018740 +0100
3 @@ -24,6 +24,13 @@
4  del _version
5  
6  
7 +def _get_optional_plugins():
8 +    try:
9 +        import SpiderImagePlugin
10 +        return ['SpiderImagePlugin']
11 +    except:
12 +        return []
13 +
14  _plugins = [
15      "BlpImagePlugin",
16      "BmpImagePlugin",
17 @@ -61,7 +68,6 @@
18      "PpmImagePlugin",
19      "PsdImagePlugin",
20      "SgiImagePlugin",
21 -    "SpiderImagePlugin",
22      "SunImagePlugin",
23      "TgaImagePlugin",
24      "TiffImagePlugin",
25 @@ -70,4 +76,4 @@
26      "XbmImagePlugin",
27      "XpmImagePlugin",
28      "XVThumbImagePlugin",
29 -]
30 +] + _get_optional_plugins()
This page took 0.068092 seconds and 3 git commands to generate.