Skip to content

Commit c497085

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

File tree

2 files changed

+34
-48
lines changed

2 files changed

+34
-48
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: 33 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,62 @@
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
9-
10-
if sys.platform == "win32" and sys.version_info >= (3, 13):
11-
@@ -150,6 +151,7 @@
12-
13-
14-
def _find_library_dirs_ldconfig():
1+
diff '--color=auto' -uNr Pillow-11.3.0/pyproject.toml Pillow-11.3.0.mod/pyproject.toml
2+
--- Pillow-11.3.0/pyproject.toml 2025-07-01 13:11:24.000000000 +0530
3+
+++ Pillow-11.3.0.mod/pyproject.toml 2025-09-17 01:51:44.588227086 +0530
4+
@@ -14,7 +14,7 @@
5+
keywords = [
6+
"Imaging",
7+
]
8+
-license = "MIT-CMU"
9+
+license = { text = "MIT-CMU" }
10+
license-files = [ "LICENSE" ]
11+
authors = [
12+
{ name = "Jeffrey A. Clark", email = "[email protected]" },
13+
diff '--color=auto' -uNr Pillow-11.3.0/setup.py Pillow-11.3.0.mod/setup.py
14+
--- Pillow-11.3.0/setup.py 2025-07-01 13:11:24.000000000 +0530
15+
+++ Pillow-11.3.0.mod/setup.py 2025-09-17 01:50:35.498105827 +0530
16+
@@ -156,6 +156,7 @@
17+
18+
19+
def _find_library_dirs_ldconfig() -> list[str]:
1520
+ return []
1621
# Based on ctypes.util from Python 2
1722

1823
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]
24+
@@ -514,12 +515,10 @@
2725

2826
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"))
27+
root_prefix = os.environ[root_name]
28+
- root = (
29+
- os.path.join(root_prefix, "lib"),
30+
- os.path.join(root_prefix, "include"),
31+
- )
3132
+ root = tuple(os.environ[root_name].split(":"))
3233

3334
if root is None and pkg_config:
3435
+ 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 @@
36+
if isinstance(lib_name, str):
37+
_dbg("Looking for `%s` using pkg-config.", lib_name)
38+
root = pkg_config(lib_name)
39+
@@ -565,13 +564,11 @@
5440
for d in os.environ[k].split(os.path.pathsep):
5541
_add_directory(library_dirs, d)
5642

5743
- _add_directory(library_dirs, os.path.join(sys.prefix, "lib"))
5844
- _add_directory(include_dirs, os.path.join(sys.prefix, "include"))
59-
-
45+
6046
#
6147
# add platform directories
6248

6349
- if self.disable_platform_guessing:
64-
+ if True:
50+
+ if True: # self.disable_platform_guessing:
6551
pass
6652

6753
elif sys.platform == "cygwin":
68-
@@ -614,7 +606,7 @@
54+
@@ -674,7 +671,7 @@
6955
# FIXME: check /opt/stuff directories here?
7056

7157
# standard locations
7258
- if not self.disable_platform_guessing:
73-
+ if False: #not self.disable_platform_guessing:
59+
+ if False: # not self.disable_platform_guessing:
7460
_add_directory(library_dirs, "/usr/local/lib")
7561
_add_directory(include_dirs, "/usr/local/include")
7662

0 commit comments

Comments
 (0)