From 63b2f11f72563d01762be2cf5864c8615d54d87f Mon Sep 17 00:00:00 2001 From: Ansh Dadwal Date: Fri, 7 Jun 2024 22:36:19 +0530 Subject: [PATCH] `pyjnius`: switch to `PyProjectRecipe` --- pythonforandroid/recipes/pyjnius/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pythonforandroid/recipes/pyjnius/__init__.py b/pythonforandroid/recipes/pyjnius/__init__.py index 0bcb74d392..2b9f75f0e8 100644 --- a/pythonforandroid/recipes/pyjnius/__init__.py +++ b/pythonforandroid/recipes/pyjnius/__init__.py @@ -1,11 +1,11 @@ -from pythonforandroid.recipe import CythonRecipe +from pythonforandroid.recipe import PyProjectRecipe from pythonforandroid.toolchain import shprint, current_directory, info from pythonforandroid.patching import will_build import sh from os.path import join -class PyjniusRecipe(CythonRecipe): +class PyjniusRecipe(PyProjectRecipe): version = '1.6.1' url = 'https://github.com/kivy/pyjnius/archive/{version}.zip' name = 'pyjnius' @@ -14,8 +14,8 @@ class PyjniusRecipe(CythonRecipe): patches = [('genericndkbuild_jnienv_getter.patch', will_build('genericndkbuild'))] - def get_recipe_env(self, arch): - env = super().get_recipe_env(arch) + def get_recipe_env(self, arch, **kwargs): + env = super().get_recipe_env(arch, **kwargs) # NDKPLATFORM is our switch for detecting Android platform, so can't be None env['NDKPLATFORM'] = "NOTNONE" return env