kivy / kivy-launcher

Reboot of the older Kivy launcher
MIT License
108 stars 56 forks source link

How to try app with external packages?? #27

Open SteveeH opened 2 years ago

SteveeH commented 2 years ago

Hi,

can someone tell me, how I should include external packeges for project?? For example in my app i want to use kivymd, pyjnius, etc.

Thanks for answering Steve

chrysn commented 1 year ago

What I'm currently doing is placing the wheels somewhere on the phone (eg. next to main.py), and then adding them to the path explicitly (eg. as sys.path.append(str(Path(__file__).parant / "cbor2-5.4.6-py3-none-any.whl") + '/')). The trailing slash matters; without it, the import wouldn't go through zipimport and thus fail.

It'd be great if a requirements.txt could be placed next to android.txt (and installed from PyPI automatically), but at least this is a workaround.