Skip to content

Commit 585d0b4

Browse files
committed
DOC: remove numpy pin_compatible reference
1 parent 9f2a84a commit 585d0b4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/maintainer/knowledge_base.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -761,25 +761,24 @@ Other OpenGL API variants such as `libegl-devel`, `libgles-devel`, `libglx-devel
761761

762762
### Building Against NumPy
763763

764-
Packages that link against NumPy need special treatment in the dependency section.
765764
Finding `numpy.get_include()` in `setup.py` or `cimport` statements in `.pyx` or `.pyd` files are a telltale sign that the package links against NumPy.
766765

767-
In the case of linking, you need to use the `pin_compatible` function to ensure having a compatible numpy version at run time:
766+
Adding `numpy` in the `host:` section is sufficient to have a compatible NumPy version at run time:
768767

769768
```yaml
770769
host:
771770
- numpy
772771
```
773772

774-
At the time of writing (June 2025), above is equivalent to the following,
773+
At the time of writing (June 2025), the above is equivalent to the following:
775774

776775
```yaml title="recipe/conda_build_config.yaml"
777776
host:
778777
- numpy 2.*
779778
```
780779

781780
See the pinning repository for
782-
[what the pinning corresponds to](https://github.com/conda-forge/conda-forge-pinning-feedstock/blob/main/recipe/conda_build_config.yaml#L742) at any given time.
781+
[what the pinning corresponds to](https://github.com/conda-forge/conda-forge-pinning-feedstock/blob/main/recipe/conda_build_config.yaml) at any given time.
783782

784783
In either case, the actual runtime requirements are determined through numpy's
785784
run-export, which is:

0 commit comments

Comments
 (0)