chaquo / chaquopy

Chaquopy: the Python SDK for Android
https://chaquo.com/chaquopy/
MIT License
837 stars 133 forks source link

Android pip upstreaming #981

Open mhsmith opened 1 year ago

mhsmith commented 1 year ago

Our current patches are mainly for:

We also try to make any attempt to build native code fail fast and cleanly, but think that's done only with patches to setuptools, not pip.

Once we're able to use an unpatched version of pip, we should stop bundling it with Chaquopy, and instead install it into a cached venv during the build, as build-wheel does. For reproducibility, we should still use a fixed version of pip by default, but it would be a good idea to provide a pip { version } option to override this.

Related:

IsakTheHacker commented 1 year ago

Will the pip upstreaming render the current package repository obsolete?

mhsmith commented 1 year ago

No, because Android wheels aren't yet accepted by PyPI, although that's something we're working on long-term. But I'd like to be able to use an unpatched version of pip to install from our existing repository, because the patches make it more difficult to upgrade pip to deal with issues like https://github.com/beeware/briefcase/issues/1480.