Skip to content

Commit 80816f8

Browse files
authored
Update knowledge_base.md
1 parent 2a14a4b commit 80816f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/maintainer/knowledge_base.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,6 +1726,9 @@ add some information on r packages which make heavy use of `noarch: generic`
17261726

17271727
Packages can be built using CPython's stable [`abi3` mode](https://docs.python.org/3/c-api/stable.html) by adding a few conditionals to the `build`, `requirements`, and (optionally) `test` sections, see [this `meta.yaml` example](https://github.com/conda-forge/python-abi3-feedstock/blob/main/recipe/example-meta.yaml) from the `python-abi3-feedstock`, in particular the parts that depend on the `is_abi3`, as well as the relevant [conda-build documentation](https://docs.conda.io/projects/conda-build/en/stable/resources/define-metadata.html#python-version-independent-packages).
17281728

1729+
Note that the python extension that is being packaged needs to support building the extension as an ABI3 package. For setuptools
1730+
based projects, the keyword argument `py_limited_api=True` needs to be passed to the `setup` function.
1731+
17291732
## Multi-output recipes
17301733

17311734
`conda-build` has the ability to create multiple package artifacts from a single recipe via the `outputs` section in `meta.yaml`. This is useful in several scenarios, including:

0 commit comments

Comments
 (0)