You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sphinx/src/maintainer/knowledge_base.rst
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -453,6 +453,43 @@ but merely to provide a starting point with some guidelines. Please look at `oth
453
453
454
454
.. _other recipes for more examples: https://github.com/search?q=org%3Aconda-forge+path%3Arecipe%2Fmeta.yaml+%22%5Bbuild_platform+%21%3D+target_platform%5D%22&type=code
455
455
456
+
Details about cross-compiled Python packages
457
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
458
+
459
+
Cross-compiling Python packages is a bit more involved than other packages. This is because Python
460
+
doesn't have official support for cross-compilation and a series of workarounds need to be applied
461
+
to make it work. See `PEP720 <https://peps.python.org/pep-0720/>`__ for more details.
462
+
463
+
On conda-forge, there are two extra metadata bits that are needed in ``meta.yaml``:
464
+
465
+
- Adding ``cross-python_{{ target_platform }}`` in ``build`` requirements, provided by the
466
+
`cross-python-feedstock <https://github.com/conda-forge/cross-python-feedstock>`__. This is a
467
+
wrapper for the ``crossenv`` Python interpreters with `some activation logic that adjust some of
0 commit comments