From a4a2134db523b0e87c9bb8b2165c2dcc0a7c93f1 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Thu, 5 Jan 2023 21:38:51 +0100 Subject: [PATCH] better handle p4a parent qt5 recipe --- contrib/android/p4a_recipes/qt5/__init__.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/contrib/android/p4a_recipes/qt5/__init__.py b/contrib/android/p4a_recipes/qt5/__init__.py index f3c9b08809b0..2235f3659370 100644 --- a/contrib/android/p4a_recipes/qt5/__init__.py +++ b/contrib/android/p4a_recipes/qt5/__init__.py @@ -1,8 +1,16 @@ +import os + from pythonforandroid.recipes.qt5 import Qt5Recipe +from pythonforandroid.util import load_source + +util = load_source('util', os.path.join(os.path.dirname(os.path.dirname(__file__)), 'util.py')) assert Qt5Recipe._version == "9b43a43ee96198674060c6b9591e515e2d27c28f" assert Qt5Recipe.depends == ['python3'] assert Qt5Recipe.python_depends == [] -recipe = Qt5Recipe() +class Qt5RecipePinned(util.InheritedRecipeMixin, Qt5Recipe): + pass + +recipe = Qt5RecipePinned()