Skip to content

Added commands to import binary dists, and fetch from a basic online repo - #804

Closed
inclement wants to merge 5 commits into
kivy:masterfrom
inclement:fetch_dists
Closed

inclement wants to merge 5 commits into
kivy:masterfrom
inclement:fetch_dists

Conversation

@inclement

@inclement inclement commented Jun 23, 2016 •

Copy link
Copy Markdown
Member

I don't really know if this is a good idea, but it seems like it could be. It's not for merging without some discussion and improvement.

I've tried to keep this POC simple. Basically, you run p4a fetch_binary_dists to download some prebuilt dists from a github repo containing a basic index. p4a then downloads each one of these if there isn't already one with that name. After this, the dists behave exactly as normal and can be used to make APKs without any compiling.

As a side effect, there's an import_dist command that's more general than this, so in principle (if you wanted to) it's easy for anyone to export and share dists they've built.

Here's some sample output of running the commands:

asandy@homemade:~/devel/p4a-binary-distribution$ p4a dists
[INFO]:    This python-for-android revamp is an experimental alpha release!
[INFO]:    It should work (mostly), but you may experience missing features or bugs.
There are no dists currently built.
asandy@homemade:~/devel/p4a-binary-distribution$ p4a fetch_binary_dists
[INFO]:    This python-for-android revamp is an experimental alpha release!
[INFO]:    It should work (mostly), but you may experience missing features or bugs.
[INFO]:    Retrieved binary dists index
[INFO]:    Found dists for download:
[INFO]:        - py2_sdl2_binary_test
[INFO]:    py2_sdl2_binary_test dist not yet present, downloading
[INFO]:    Extracting /home/asandy/.local/share/python-for-android/binary_dists/py2_sdl2_binary_test.zip into /home/asandy/.local/share/python-for-android/dists/py2_sdl2_binary_test
[INFO]:    Imported dist has name py2_sdl2_binary_test
[INFO]:    Dist was imported successfully
[INFO]:    Run `p4a dists` to see information about the new dist.
asandy@homemade:~/devel/p4a-binary-distribution$ p4a dists
[INFO]:    This python-for-android revamp is an experimental alpha release!
[INFO]:    It should work (mostly), but you may experience missing features or bugs.
Distributions currently installed are:
    py2_sdl2_binary_test: includes recipes (hostpython2, sdl2_image, sdl2_mixer, sdl2_ttf, python2, sdl2, six, pyjnius, kivy), built for archs (armeabi)

@inclement

Copy link
Copy Markdown
Member Author

Closing as a bad idea, or at least a bad implementation. I don't think we want to go this way.

@inclement inclement closed this Jan 31, 2019
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

Successfully merging this pull request may close these issues.

1 participant