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
Improve build_platform and providers documentation
Clarify that build_platforms are native when unspecified and that cross-compilation must be manually specified if (as in the case of osx_arm64 right now), there is no native provider available.
Copy file name to clipboardExpand all lines: src/maintainer/conda_forge_yml.rst
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,14 +129,26 @@ automatic version updates/migrations for feedstocks. The current options are
129
129
build_platform
130
130
--------------
131
131
This is a mapping from the build platform to the host platform of the package
132
-
to be built. For eg: following builds a ``osx-64`` platform from ``linux-64``
132
+
to be built. e.g. the following builds a ``osx-64`` package on the ``linux-64``
133
133
build platform using cross-compiling.
134
134
135
135
.. code-block:: yaml
136
136
137
137
build_platform:
138
138
osx_64: linux_64
139
-
139
+
140
+
Leaving this field empty implicitly requests to build a package natively. i.e.
141
+
142
+
.. code-block:: yaml
143
+
144
+
build_platform:
145
+
linux_64: linux_64
146
+
linux_ppc64le: linux_ppc64le
147
+
linux_aarch64: linux_aarch64
148
+
osx_64: osx_64
149
+
osx_arm64: osx_arm64
150
+
win_64: win_64
151
+
140
152
.. _build_with_mambabuild:
141
153
142
154
build_with_mambabuild
@@ -339,6 +351,7 @@ arches:
339
351
* ``win``
340
352
* ``linux_aarch64``
341
353
* ``linux_ppc64le``
354
+
* ``osx_arm64``
342
355
343
356
The following CI services are available:
344
357
@@ -369,6 +382,7 @@ provider entry is equivalent to the following:
369
382
win: azure
370
383
linux_ppc64le: None
371
384
linux_aarch64: None
385
+
osx_arm64: None
372
386
373
387
To enable ``linux_ppc64le`` and ``linux_aarch64`` and the following:
374
388
@@ -378,6 +392,8 @@ To enable ``linux_ppc64le`` and ``linux_aarch64`` and the following:
378
392
linux_ppc64le: default
379
393
linux_aarch64: default
380
394
395
+
If the ``build_platform`` for an arch is not available with the selected provider, the build will be disabled; cross-compilation must be specified manually.
0 commit comments