|
1 |
| ---- Pillow/setup.py 2024-05-24 19:35:08.270160608 +0530 |
2 |
| -+++ Pillow.mod/setup.py 2024-05-24 22:07:52.741495666 +0530 |
3 |
| -@@ -39,6 +39,7 @@ |
4 |
| - LCMS_ROOT = None |
5 |
| - TIFF_ROOT = None |
6 |
| - ZLIB_ROOT = None |
7 |
| -+WEBP_ROOT = None |
8 |
| - FUZZING_BUILD = "LIB_FUZZING_ENGINE" in os.environ |
| 1 | +diff '--color=auto' -uNr Pillow-11.3.0/setup.py Pillow-11.3.0.mod/setup.py |
| 2 | +--- Pillow-11.3.0/setup.py 2025-07-01 13:11:24.000000000 +0530 |
| 3 | ++++ Pillow-11.3.0.mod/setup.py 2025-08-17 11:19:18.550123680 +0530 |
| 4 | +@@ -156,6 +156,7 @@ |
9 | 5 |
|
10 |
| - if sys.platform == "win32" and sys.version_info >= (3, 13): |
11 |
| -@@ -150,6 +151,7 @@ |
12 | 6 |
|
13 |
| - |
14 |
| - def _find_library_dirs_ldconfig(): |
| 7 | + def _find_library_dirs_ldconfig() -> list[str]: |
15 | 8 | + return []
|
16 | 9 | # Based on ctypes.util from Python 2
|
17 | 10 |
|
18 | 11 | ldconfig = "ldconfig" if shutil.which("ldconfig") else "/sbin/ldconfig"
|
19 |
| -@@ -460,15 +462,16 @@ |
20 |
| - "HARFBUZZ_ROOT": "harfbuzz", |
21 |
| - "FRIBIDI_ROOT": "fribidi", |
22 |
| - "LCMS_ROOT": "lcms2", |
23 |
| -+ "WEBP_ROOT": "libwebp", |
24 |
| - "IMAGEQUANT_ROOT": "libimagequant", |
25 |
| - }.items(): |
26 |
| - root = globals()[root_name] |
| 12 | +@@ -514,12 +515,10 @@ |
27 | 13 |
|
28 | 14 | if root is None and root_name in os.environ:
|
29 |
| -- prefix = os.environ[root_name] |
30 |
| -- root = (os.path.join(prefix, "lib"), os.path.join(prefix, "include")) |
| 15 | + root_prefix = os.environ[root_name] |
| 16 | +- root = ( |
| 17 | +- os.path.join(root_prefix, "lib"), |
| 18 | +- os.path.join(root_prefix, "include"), |
| 19 | +- ) |
31 | 20 | + root = tuple(os.environ[root_name].split(":"))
|
32 | 21 |
|
33 | 22 | if root is None and pkg_config:
|
34 | 23 | + continue
|
35 |
| - if isinstance(lib_name, tuple): |
36 |
| - for lib_name2 in lib_name: |
37 |
| - _dbg(f"Looking for `{lib_name2}` using pkg-config.") |
38 |
| -@@ -495,14 +498,6 @@ |
39 |
| - for include_dir in include_root: |
40 |
| - _add_directory(include_dirs, include_dir) |
41 |
| - |
42 |
| -- # respect CFLAGS/CPPFLAGS/LDFLAGS |
43 |
| -- for k in ("CFLAGS", "CPPFLAGS", "LDFLAGS"): |
44 |
| -- if k in os.environ: |
45 |
| -- for match in re.finditer(r"-I([^\s]+)", os.environ[k]): |
46 |
| -- _add_directory(include_dirs, match.group(1)) |
47 |
| -- for match in re.finditer(r"-L([^\s]+)", os.environ[k]): |
48 |
| -- _add_directory(library_dirs, match.group(1)) |
49 |
| -- |
50 |
| - # include, rpath, if set as environment variables: |
51 |
| - for k in ("C_INCLUDE_PATH", "CPATH", "INCLUDE"): |
52 |
| - if k in os.environ: |
53 |
| -@@ -514,13 +509,10 @@ |
| 24 | + if isinstance(lib_name, str): |
| 25 | + _dbg("Looking for `%s` using pkg-config.", lib_name) |
| 26 | + root = pkg_config(lib_name) |
| 27 | +@@ -565,13 +564,11 @@ |
54 | 28 | for d in os.environ[k].split(os.path.pathsep):
|
55 | 29 | _add_directory(library_dirs, d)
|
56 | 30 |
|
57 | 31 | - _add_directory(library_dirs, os.path.join(sys.prefix, "lib"))
|
58 | 32 | - _add_directory(include_dirs, os.path.join(sys.prefix, "include"))
|
59 |
| -- |
| 33 | + |
60 | 34 | #
|
61 | 35 | # add platform directories
|
62 | 36 |
|
63 | 37 | - if self.disable_platform_guessing:
|
64 |
| -+ if True: |
| 38 | ++ if True: # self.disable_platform_guessing: |
65 | 39 | pass
|
66 | 40 |
|
67 | 41 | elif sys.platform == "cygwin":
|
68 |
| -@@ -614,7 +606,7 @@ |
| 42 | +@@ -674,7 +671,7 @@ |
69 | 43 | # FIXME: check /opt/stuff directories here?
|
70 | 44 |
|
71 | 45 | # standard locations
|
72 | 46 | - if not self.disable_platform_guessing:
|
73 |
| -+ if False: #not self.disable_platform_guessing: |
| 47 | ++ if False: # not self.disable_platform_guessing: |
74 | 48 | _add_directory(library_dirs, "/usr/local/lib")
|
75 | 49 | _add_directory(include_dirs, "/usr/local/include")
|
76 | 50 |
|
0 commit comments