Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Wheel package

100 views
Skip to first unread message

stf

unread,
Mar 4, 2022, 1:27:14 PM3/4/22
to Kivy users support
Could we use a wheel package in buildozer.spec ?
For example I am interested in using "numba" from https://chaquo.com/pypi-7.0/

Robert

unread,
Mar 4, 2022, 8:48:20 PM3/4/22
to Kivy users support
I've never heard of anybody doing that, and nobody related to this project built that wheel so the answer from this point of view is - don't know.

We can however scope out the possible issues, expect some other surprise!
 I'd be interested to know if you get it working.

1) What is in the whl? We don't know, we can infer some characteristics from the file name, but you are going to have to experiment. https://chaquo.com/pypi-7.0/numba/
 
The Python version is the same as p4a (currently - which is a potential long term support problem when the whl or p4a changes),  - probably OK for now.

The 21 in the name is (I expect) min sdk, which is the same as p4a default - probably OK

Arm64_v8a whl, this arch is available with p4a - probably OK

One unknown is ndk version. p4a uses 19c and we don't know what the whl uses. If the wheel uses the same - great. If not there may be issues, 21d mostly works with p4a but there are issues with 21d independent of p4a, 23 is good but p4a support is currently in development. - so don't know how this will resolve.

And just in case those guys try to keep their whl proprietary :
Do the symbols use the default llvm symbol name mangling?

2) How to tell Buildozer to use that repository?

Buildozer downloads from pypi, it may be possible to change that but I don't know how.
I think you'd have to create a local recipe that downloads the whl and installs it in the apk site-packages.
That would be a simple recipe, but recipe writing help is non existent so you need to be self supporting.

stf

unread,
Mar 5, 2022, 8:15:29 AM3/5/22
to Kivy users support
Thanks for your interesting answer.

If buildozer use pip to install packages it would be trivial to add .whl and install a local wheel with  "pip install wheel_file.whl", is not it?

I asked to the maintainer of this wheel package about licensing and he said "no objection to any other project using them."

I think the best way is to create a simple recipe but I have not any knowledge about writing recipes...

Robert

unread,
Mar 5, 2022, 12:09:05 PM3/5/22
to Kivy users support
Never tried installing a local whl, I don't think this is documented, if it is possible you'll have to find out by digging through the p4a source.

Samuel PATE

unread,
May 28, 2024, 1:56:22 PM5/28/24
to Kivy users support
Did you finally find a way to use a wheel package in buildozer.spec ?
Reply all
Reply to author
Forward
0 new messages