Skip to content

Commit da8fd95

Browse files
committed
py-Pillow: add py313 subport
This includes a backport of python-pillow/Pillow#8050 (python-pillow/Pillow@57399ce) from Pillow 10.4.0, necessary for Python 3.13 compatibility. See python/cpython#118888.
1 parent 443421b commit da8fd95

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

python/py-Pillow/Portfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ revision 1
99
categories-append devel
1010
license BSD
1111

12-
python.versions 27 37 38 39 310 311 312
12+
python.versions 27 37 38 39 310 311 312 313
1313
python.pep517 no
1414

1515
maintainers {stromnov @stromnov} openmaintainer

python/py-Pillow/files/patch-setup.py.diff

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
--- setup.py.orig 2021-10-15 09:26:23.000000000 +0300
2-
+++ setup.py 2021-10-16 16:06:42.000000000 +0300
3-
@@ -510,52 +510,9 @@ class pil_build_ext(build_ext):
1+
diff --git setup.py setup.py
2+
index 07d6c66d655e..a77263ef2900 100755
3+
--- setup.py
4+
+++ setup.py
5+
@@ -22,8 +22,7 @@ from setuptools.command.build_ext import build_ext
6+
def get_version():
7+
version_file = "src/PIL/_version.py"
8+
with open(version_file, encoding="utf-8") as f:
9+
- exec(compile(f.read(), version_file, "exec"))
10+
- return locals()["__version__"]
11+
+ return f.read().split('"')[1]
12+
13+
14+
PILLOW_VERSION = get_version()
15+
@@ -517,52 +516,9 @@ class pil_build_ext(build_ext):
416
)
517

618
elif sys.platform == "darwin":
@@ -54,4 +66,4 @@
5466
+ _add_directory(include_dirs, "@prefix@/include")
5567
elif (
5668
sys.platform.startswith("linux")
57-
or sys.platform.startswith("gnu")
69+
or sys.platform.startswith("gnu")

0 commit comments

Comments
 (0)