beeware / briefcase

Tools to support converting a Python project into a standalone native application.
https://briefcase.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
2.5k stars 354 forks source link

llama-cpp-python for beeware #1685

Closed krecicki closed 4 months ago

krecicki commented 4 months ago

What is the problem or limitation you are having?

I am running llama-cpp-python in 'briefcase dev' without a problem. Whenever I try to compile to a stand alone: Android, iOS or .dmg -- it fails to install llama-cpp-python.

We are trying to make our app into an .apk but this is stopping us. This guy https://github.com/Bip-Rep/sherpa/tree/main/android was able to figure something out, but I'm not that smart. These guys also sorted it out https://github.com/Mobile-Artificial-Intelligence/maid

Describe the solution you'd like

Be able to make an android build with llama-cpp-python to get an .apk to upload to the play store.

Be able to make a iOS build with llama-cpp-python to upload it to the Google App Store.

Describe alternatives you've considered

I am not sure what to do.

Additional context

No response

freakboy3742 commented 4 months ago

The Briefcase FAQ details the state of support for third party packages

I know nothing about llama-cpp-python, but based on the name and PyPI description, it seems highly likely this is a package that contains a compiled binary component. In that case, someone will need to develop a build recipe for iOS and Android - see the Android and iOS pages linked in the FAQ entry.

Closing on the basis that this isn't a Briefcase issue.