Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to try app with external packages?? #27

Open
SteveeH opened this issue Feb 16, 2022 · 1 comment
Open

How to try app with external packages?? #27

SteveeH opened this issue Feb 16, 2022 · 1 comment

Comments

@SteveeH
Copy link

SteveeH commented Feb 16, 2022

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
Copy link

chrysn commented Apr 13, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants