From 0627767c0d19557074b21cf11023c6576144593e Mon Sep 17 00:00:00 2001 From: Zachary Spector Date: Mon, 12 May 2025 16:09:18 +1200 Subject: [PATCH 1/2] pyjnius recipe: require old enough Cython to have `long` type --- pythonforandroid/recipes/pyjnius/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pythonforandroid/recipes/pyjnius/__init__.py b/pythonforandroid/recipes/pyjnius/__init__.py index cd80b4634..0e54c7799 100644 --- a/pythonforandroid/recipes/pyjnius/__init__.py +++ b/pythonforandroid/recipes/pyjnius/__init__.py @@ -9,6 +9,7 @@ class PyjniusRecipe(PyProjectRecipe): version = '1.6.1' url = 'https://github.com/kivy/pyjnius/archive/{version}.zip' name = 'pyjnius' + hostpython_prerequisites = ["Cython>=0.29.33,<3"] depends = [('genericndkbuild', 'sdl2', 'sdl3'), 'six'] site_packages_name = 'jnius' From bcb606cf6e76edaccd5942d020147903bbc45078 Mon Sep 17 00:00:00 2001 From: Zachary Spector Date: Mon, 12 May 2025 16:10:26 +1200 Subject: [PATCH 2/2] numpy recipe: require older Cython --- pythonforandroid/recipes/numpy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonforandroid/recipes/numpy/__init__.py b/pythonforandroid/recipes/numpy/__init__.py index fb34c0c9f..e81a03af6 100644 --- a/pythonforandroid/recipes/numpy/__init__.py +++ b/pythonforandroid/recipes/numpy/__init__.py @@ -9,7 +9,7 @@ class NumpyRecipe(MesonRecipe): version = 'v1.26.5' url = 'git+https://github.com/numpy/numpy' - hostpython_prerequisites = ["Cython>=3.0.6"] # meson does not detects venv's cython + hostpython_prerequisites = ["Cython>=3.0.6,<3.1.0"] # meson does not detects venv's cython extra_build_args = ['-Csetup-args=-Dblas=none', '-Csetup-args=-Dlapack=none'] need_stl_shared = True