Open Andrei-Pozolotin opened 3 years ago
If I get it right your request, We already have this feature and it's exposed by --add-custom-recipe
.
You can add multiple custom recipes by using it:
python toolchain.py build mycustompackage1 mycustompackage2 --add-custom-recipe /PATH/TO/MY/RECIPE1 --add-custom-recipe /PATH/TO/MY/RECIPE2
@misl6 Mirko:
thank you, I did not see --add-custom-recipe
before
a couple of questions, please:
this does not seem to work for custom recipe to override/replace existing/provided recipe? for example in order to locally resolve #595
toolchain build python3 --add-custom-recipe /path-to/custom-recipe/python3
clean is not supported, then how to clean?
toolchain clean recipe_x --add-custom-recipe /path-to/custom-recipe/recipe_x
Hi @Andrei-Pozolotin ,
Yes, it doesn't override an existing recipe and after checking python-for-android
code, It probably should do in order to be fully consistent.
Also, clean is not supported and should be.
Leaving that open and marking it as milestone 1.3.0. Thank you for reporting.
I am able to add a custom recipe, but it was not getting installed onto the app. To do this I had to move the recipe from my local directory into the virtual environment of my host python:
$VIRTUAL_ENV/lib/python3.9/site-packages/kivy_ios/recipes/myapp/__init__.py
https://github.com/kivy/kivy-ios/blob/2cb084c26b7e9b45b027961cded13521b8db5b6b/kivy_ios/toolchain.py
https://github.com/kivy/python-for-android/blob/develop/pythonforandroid/toolchain.py