Skip to content

Commit

Permalink
Fix 11.0.0 pillow build
Browse files Browse the repository at this point in the history
The build for Pillow 11.0.0 doesn't work from this file
without this change due to the original url scheme not working.
Updated the pillow url to go to github to fetch the tar ball.
  • Loading branch information
hemna committed Nov 19, 2024
1 parent b43cd08 commit bd3b0ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
5 changes: 3 additions & 2 deletions kivy_ios/recipes/pillow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@


class PillowRecipe(CythonRecipe):
version = "8.2.0"
url = "https://pypi.python.org/packages/source/P/Pillow/Pillow-{version}.tar.gz"
version = "11.0.0"
#url = "https://pypi.python.org/packages/source/p/pillow/pillow-{version}.tar.gz"
url = "https://github.com/python-pillow/Pillow/archive/refs/tags/{version}.tar.gz"
library = "libpillow.a"
depends = [
"hostpython3",
Expand Down
11 changes: 5 additions & 6 deletions kivy_ios/recipes/pillow/bypass-find-library.patch
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
diff -Naur Pillow-8.2.0.orig/setup.py Pillow-8.2.0/setup.py
--- Pillow-8.2.0.orig/setup.py 2021-04-05 11:11:26.000000000 +0200
+++ Pillow-8.2.0/setup.py 2021-04-05 11:16:12.000000000 +0200
@@ -222,12 +222,9 @@
--- Pillow-11.0.0.orig/setup.py 2024-10-15 01:55:00.000000000 -0400
+++ Pillow-11.0.0/setup.py 2024-11-19 12:20:09.514795844 -0500
@@ -231,12 +231,9 @@


def _find_library_file(self, library):
def _find_library_file(self: pil_build_ext, library: str) -> str | None:
- ret = self.compiler.find_library_file(self.compiler.library_dirs, library)
- if ret:
- _dbg("Found library %s at %s", (library, ret))
Expand All @@ -16,4 +15,4 @@ diff -Naur Pillow-8.2.0.orig/setup.py Pillow-8.2.0/setup.py
+ return True


def _find_include_dir(self, dirname, include):
def _find_include_dir(self: pil_build_ext, dirname: str, include: str) -> bool | str:

0 comments on commit bd3b0ce

Please sign in to comment.