You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I develope a python/kivy app (small raw photo editor).
My app uses rawpy to extract image from raw photo.
Now I want to compile my code for android (arm64) witih buildozer.
It seems, that rawpy could not be compiled for the right architecture out of the box (x86 instead of arm64). Many python packages got a "recipe" to work like expectet with buildozer. For example Pillow, which I also use in my app.
I am not a python expert, but maybe it is more easy for you to write such a recipe. I think this is also a good way to spread rawpy package to android apps with kivy and buildozer.
The recipe I wrote to get it work doesnt seem to be right... I wanted to include the rawpy arm64 package, which I think is needed to be included in the recipe.
Code
from pythonforandroid.toolchain import Recipe, shprint, current_directory
from os.path import exists, join
class YourRecipe(Recipe):
version = '0.17.2'
url = 'https://github.com/letmaik/rawpy/archive/refs/heads/main.zip'
site_packages_name = 'rawpy'
depends = ['setuptools','wheel','python3', 'cython','numpy'] # A list of any other recipe names
# that must be built before this
# one
recipe = YourRecipe()
It would be great, if you could help me with this!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi letmaik,
I develope a python/kivy app (small raw photo editor).
My app uses rawpy to extract image from raw photo.
Now I want to compile my code for android (arm64) witih buildozer.
It seems, that rawpy could not be compiled for the right architecture out of the box (x86 instead of arm64). Many python packages got a "recipe" to work like expectet with buildozer. For example Pillow, which I also use in my app.
I am not a python expert, but maybe it is more easy for you to write such a recipe. I think this is also a good way to spread rawpy package to android apps with kivy and buildozer.
The recipe I wrote to get it work doesnt seem to be right... I wanted to include the rawpy arm64 package, which I think is needed to be included in the recipe.
Code
It would be great, if you could help me with this!
Beta Was this translation helpful? Give feedback.
All reactions