Skip to content

Commit cd9cda2

Browse files
committed
pillow: update to 11.3.0
1 parent 5330267 commit cd9cda2

File tree

2 files changed

+20
-46
lines changed

2 files changed

+20
-46
lines changed

pythonforandroid/recipes/Pillow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class PillowRecipe(PyProjectRecipe):
2323
- libwebp: library to encode and decode images in WebP format.
2424
"""
2525

26-
version = '10.3.0'
26+
version = '11.3.0'
2727
url = 'https://github.com/python-pillow/Pillow/archive/{version}.tar.gz'
2828
site_packages_name = 'PIL'
2929
patches = ["setup.py.patch"]
Lines changed: 19 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,50 @@
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 @@
95

10-
if sys.platform == "win32" and sys.version_info >= (3, 13):
11-
@@ -150,6 +151,7 @@
126

13-
14-
def _find_library_dirs_ldconfig():
7+
def _find_library_dirs_ldconfig() -> list[str]:
158
+ return []
169
# Based on ctypes.util from Python 2
1710

1811
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 @@
2713

2814
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+
- )
3120
+ root = tuple(os.environ[root_name].split(":"))
3221

3322
if root is None and pkg_config:
3423
+ 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 @@
5428
for d in os.environ[k].split(os.path.pathsep):
5529
_add_directory(library_dirs, d)
5630

5731
- _add_directory(library_dirs, os.path.join(sys.prefix, "lib"))
5832
- _add_directory(include_dirs, os.path.join(sys.prefix, "include"))
59-
-
33+
6034
#
6135
# add platform directories
6236

6337
- if self.disable_platform_guessing:
64-
+ if True:
38+
+ if True: # self.disable_platform_guessing:
6539
pass
6640

6741
elif sys.platform == "cygwin":
68-
@@ -614,7 +606,7 @@
42+
@@ -674,7 +671,7 @@
6943
# FIXME: check /opt/stuff directories here?
7044

7145
# standard locations
7246
- if not self.disable_platform_guessing:
73-
+ if False: #not self.disable_platform_guessing:
47+
+ if False: # not self.disable_platform_guessing:
7448
_add_directory(library_dirs, "/usr/local/lib")
7549
_add_directory(include_dirs, "/usr/local/include")
7650

0 commit comments

Comments
 (0)