tokenizers #4921
-
https://pypi.org/project/tokenizers/ im going to have to apologize, as im working on mobile applications that uses different py packages that all have dependencies and it would seem that i would probably end up requesting quite a lot of packages being added... from the docs https://flet.dev/docs/reference/binary-packages-android-ios this seems to be the suggestion to request for packages/versions to be added for now. https://pypi.flet.dev/ itself looks like it contains a very limited number of packages and i dont want to come across as making a lot of demands. so my question is, is this the preferred way of doing this? the docs mention a mobile forge project that can be used to create your own but im not sure if this is something that would be simple to do for someone thats not super fluent in python. is the recommendation to request tens/hundreds of packages? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
The "big idea" is that at some point the maintainers of 3rd-party Python packages (aka community) will start building wheels for iOS and Android themselves and uploading them to PyPI. iOS and Android support have been just added into Python 3.13. PyPI.org does not support iOS and Android tags yet, and we don't know when community will start making iOS/Android wheels as it's kind of specialized task. So, we have to build mobile wheels for now. https://github.com/flet-dev/mobile-forge is the tool for that. Unfortunately, there is no simple recipe for authoring "recipe" to build the wheel. Sometimes, the native C/C++ code is trivial and setup logic is standard and adding a recipe for such package is just adding To make recipes you need to be willing to dig into Python setup logic (venv, wheel, pyproject.toml, setup.py, etc.) as well as deal with C/C++/Rust compilation and linking quirks. You can give Mobile Forge a try and I promise to write some instructions on how to use it. In the meantime, yes, request the packages you miss. See, for successful packaging we probably need 20% of packages covering the needs of 80% of developers :) Before submitting hundreds of requests though please ask here if it makes sense or it will look like a spam :) |
Beta Was this translation helpful? Give feedback.
-
'requires' is unknown section I guess. |
Beta Was this translation helpful? Give feedback.
-
ive tried building two wheels using the same setup
both built successfully like:
and added direct dependencies for flet build but im getting an error for
ive tried all three versions with no success, any ideas? can i request jiter? https://pypi.org/project/jiter thanks! |
Beta Was this translation helpful? Give feedback.
Btw,
tokenizers
package is now available for both iOS and Android.Look at
tokenizers
recipe: https://github.com/flet-dev/mobile-forge/blob/python3.12/recipes/tokenizers/meta.yamlIt's written in Rust and uses Maturin for building. Worked for iOS and Android like a breeze.
I'm pretty sure any other Rust/Maturin package will take minutes to build for mobile.