Enhance Cython integration: Add support for c++
mode, use hostpython3-provided Cython, allow pinning of specific Cython version in recipe
#957
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Even if the target is switching to almost-fully-isolated builds for each recipe and take advantage of the additions made to Python3.13, this PR enhances our Cython integration with some features required for
kivy/kivy
development (currentmaster
branch requires c++ support on Cython files).This PR also solves incompatibility issues related to cython-generated files when the Python version used to invokate the toolchain is different from the target one, by using the self-built hostpython3.
This PR does the following:
Cython
from installation requirements, any "cythonization" will be performed byhostpython3
.hostpython3
when required, as is now included intohostpython_prerequisites
.hostpython_prerequisites
, this way every recipe can target its own specific Cython version.CythonRecipe
is3.0.11
. All recipes that are likely incompatible with Cython3.x.x
has been set to use Cython0.29.37
CythonRecipe
based-recipes have been touched, and some of these recipes are likely old and unmaintained, a failure during the CI/CD run is expected to happen.