|
1 | 1 | --- Pillow-7.0.0/setup.py.orig 2020-01-02 06:19:26.000000000 +0100
|
2 |
| -+++ Pillow-7.0.0/setup.py 2020-02-22 17:33:03.121976748 +0100 |
| 2 | ++++ Pillow-7.0.0/setup.py 2020-07-05 12:26:18.882948858 +0200 |
3 | 3 | @@ -29,13 +29,13 @@ def get_version():
|
4 |
| - |
| 4 | + |
5 | 5 | NAME = "Pillow"
|
6 | 6 | PILLOW_VERSION = get_version()
|
7 | 7 | -FREETYPE_ROOT = None
|
|
14 | 14 | TIFF_ROOT = None
|
15 | 15 | -ZLIB_ROOT = None
|
16 | 16 | +ZLIB_ROOT = tuple(os.environ['ZLIB_ROOT'].split('|')) if 'ZLIB_ROOT' in os.environ else None
|
17 |
| - |
18 |
| - |
| 17 | + |
| 18 | + |
19 | 19 | if sys.platform == "win32" and sys.version_info >= (3, 9):
|
20 | 20 | @@ -317,7 +317,7 @@ class pil_build_ext(build_ext):
|
21 | 21 | )
|
22 |
| - |
| 22 | + |
23 | 23 | def initialize_options(self):
|
24 | 24 | - self.disable_platform_guessing = None
|
25 | 25 | + self.disable_platform_guessing = True
|
|
28 | 28 | for x in self.feature:
|
29 | 29 | @@ -567,62 +567,6 @@ class pil_build_ext(build_ext):
|
30 | 30 | feature.jpeg = "libjpeg" # alternative name
|
31 |
| - |
| 31 | + |
32 | 32 | feature.openjpeg_version = None
|
33 | 33 | - if feature.want("jpeg2000"):
|
34 | 34 | - _dbg("Looking for jpeg2000")
|
|
86 | 86 | - self, "libtiff"
|
87 | 87 | - ):
|
88 | 88 | - feature.tiff = "libtiff"
|
89 |
| - |
| 89 | + |
90 | 90 | if feature.want("freetype"):
|
91 | 91 | _dbg("Looking for freetype")
|
92 |
| -@@ -647,40 +591,6 @@ class pil_build_ext(build_ext): |
| 92 | +@@ -647,15 +591,6 @@ class pil_build_ext(build_ext): |
93 | 93 | if subdir:
|
94 | 94 | _add_directory(self.compiler.include_dirs, subdir, 0)
|
95 |
| - |
| 95 | + |
96 | 96 | - if feature.want("lcms"):
|
97 | 97 | - _dbg("Looking for lcms")
|
98 | 98 | - if _find_include_file(self, "lcms2.h"):
|
|
102 | 102 | - # alternate Windows name.
|
103 | 103 | - feature.lcms = "lcms2_static"
|
104 | 104 | -
|
105 |
| -- if feature.want("webp"): |
106 |
| -- _dbg("Looking for webp") |
107 |
| -- if _find_include_file(self, "webp/encode.h") and _find_include_file( |
108 |
| -- self, "webp/decode.h" |
109 |
| -- ): |
110 |
| -- # In Google's precompiled zip it is call "libwebp": |
111 |
| -- if _find_library_file(self, "webp"): |
112 |
| -- feature.webp = "webp" |
113 |
| -- elif _find_library_file(self, "libwebp"): |
114 |
| -- feature.webp = "libwebp" |
115 |
| -- |
116 |
| -- if feature.want("webpmux"): |
117 |
| -- _dbg("Looking for webpmux") |
118 |
| -- if _find_include_file(self, "webp/mux.h") and _find_include_file( |
119 |
| -- self, "webp/demux.h" |
120 |
| -- ): |
121 |
| -- if _find_library_file(self, "webpmux") and _find_library_file( |
122 |
| -- self, "webpdemux" |
123 |
| -- ): |
124 |
| -- feature.webpmux = "webpmux" |
125 |
| -- if _find_library_file(self, "libwebpmux") and _find_library_file( |
126 |
| -- self, "libwebpdemux" |
127 |
| -- ): |
128 |
| -- feature.webpmux = "libwebpmux" |
129 |
| -- |
130 |
| - for f in feature: |
131 |
| - if not getattr(feature, f) and feature.require(f): |
132 |
| - if f in ("jpeg", "zlib"): |
133 |
| -@@ -717,8 +627,8 @@ class pil_build_ext(build_ext): |
| 105 | + if feature.want("webp"): |
| 106 | + _dbg("Looking for webp") |
| 107 | + if _find_include_file(self, "webp/encode.h") and _find_include_file( |
| 108 | +@@ -717,8 +652,8 @@ class pil_build_ext(build_ext): |
134 | 109 | defs.append(("HAVE_LIBTIFF", None))
|
135 | 110 | if sys.platform == "win32":
|
136 | 111 | libs.extend(["kernel32", "user32", "gdi32"])
|
137 | 112 | - if struct.unpack("h", b"\0\1")[0] == 1:
|
138 | 113 | - defs.append(("WORDS_BIGENDIAN", None))
|
139 | 114 | + # if struct.unpack("h", b"\0\1")[0] == 1:
|
140 | 115 | + # defs.append(("WORDS_BIGENDIAN", None))
|
141 |
| - |
| 116 | + |
142 | 117 | if sys.platform == "win32" and not (PLATFORM_PYPY or PLATFORM_MINGW):
|
143 | 118 | defs.append(("PILLOW_VERSION", '"\\"%s\\""' % PILLOW_VERSION))
|
144 |
| -@@ -769,16 +679,6 @@ class pil_build_ext(build_ext): |
| 119 | +@@ -769,16 +704,6 @@ class pil_build_ext(build_ext): |
145 | 120 | )
|
146 | 121 | )
|
147 |
| - |
| 122 | + |
148 | 123 | - tk_libs = ["psapi"] if sys.platform == "win32" else []
|
149 | 124 | - exts.append(
|
150 | 125 | - Extension(
|
|
157 | 132 | -
|
158 | 133 | exts.append(Extension("PIL._imagingmath", ["src/_imagingmath.c"]))
|
159 | 134 | exts.append(Extension("PIL._imagingmorph", ["src/_imagingmorph.c"]))
|
160 |
| - |
| 135 | + |
0 commit comments