python-for-android icon indicating copy to clipboard operation
python-for-android copied to clipboard

recipe: introduce isolated builds, using `PyProjectRecipe`

Open T-Dynamos opened this issue 1 year ago • 4 comments
trafficstars

Closes #2904, Closes #2776 and maybe more

  • PyProjectRecipe: support for building packages in isolation which don't have setup.py file but pyproject.toml.
  • MesonRecipe: support for cross compiling meson based packages.

Here we need to inform the p4a users that if they are using numpy, they to set minimum ndk api to 24.

T-Dynamos avatar Apr 20 '24 17:04 T-Dynamos

Please ping me when you're ready

What is gonna be promising is the PyProjectRecipe, as we still rely on setup.py and non-isolated builds.

Moving to isolated builds will help us quite a lot to mitigate most of the issues that currently require a lot of hacks/setup from the user side (Incompatible Cython versions, etc ...)

misl6 avatar Apr 21 '24 15:04 misl6

~@misl6 Hi, I can't figure out how to bump min ndk_api version. Can you please figure out?~

Edit: NVM fixed.

T-Dynamos avatar Apr 22 '24 03:04 T-Dynamos

@misl6 Hi!

PR is ready for review.

T-Dynamos avatar Apr 30 '24 15:04 T-Dynamos

@misl6 As now we are building wheels for packages, is there any plan to host that wheels? This could save some compile time.

T-Dynamos avatar May 02 '24 16:05 T-Dynamos

@misl6 As now we are building wheels for packages, is there any plan to host that wheels? This could save some compile time.

This is possible but should be investigated. Feel free to ping me on Discord to discuss it, if you're interested on this topic.

misl6 avatar May 04 '24 09:05 misl6

@misl6 Done.

T-Dynamos avatar May 04 '24 17:05 T-Dynamos

Addition:

Here we need to inform the p4a users that if they are using numpy, they to set minimum ndk api to 24.

Maybe we can just raise an error if they try to do so ?

misl6 avatar May 05 '24 08:05 misl6