Skip to content

Commit f55121c

Browse files
committed
DOC: Move
1 parent bace71a commit f55121c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/maintainer/knowledge_base.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,6 +1466,13 @@ Currently available packages:
14661466
- exceptiongroup
14671467
- importlib-metadata
14681468

1469+
### Packages with abi3 extensions
1470+
1471+
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).
1472+
1473+
Note that the python extension that is being packaged needs to support building the extension as an ABI3 package. For setuptools
1474+
based projects, the keyword argument `py_limited_api=True` needs to be passed to the `setup` function.
1475+
14691476
<a id="noarch-builds"></a>
14701477

14711478
## Noarch builds
@@ -1714,21 +1721,14 @@ Again, remember to rerender after adding / modifying these files so the changes
17141721

17151722
<a id="noarch-generic"></a>
17161723

1717-
### Noarch generic
1724+
#### Noarch generic
17181725

17191726
:::info[Todo]
17201727

17211728
add some information on r packages which make heavy use of `noarch: generic`
17221729

17231730
:::
17241731

1725-
#### Packages with abi3 extensions
1726-
1727-
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).
1728-
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-
17321732
## Multi-output recipes
17331733

17341734
`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)