Closed minrk closed 1 month ago
Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml
) and found it was in an excellent condition.
@minrk I could patch setup.py upstream, but I think I need a clarification about the exact change.
numpy>=1.19,<3
.numpy<2
.Are both (1) and (2) correct? I think petsc4py source tarball has to still support building with an old NumPy 1.* release.
EDIT: I'm leaning to the following in petsc4py's setup.py:
major = int(numpy.__version__.partition('.')[0])
numpy_pin = 'numpy>=1.19' if major >= 2 else 'numpy<2'
Yes, both of those are correct. Ref: numpy's docs.
You can also govern the ABI target at build time by defining NPY_TARGET_VERSION during compilation, if you want to set an explicit (e.g. higher) baseline.
@minrk Should we just update your commit to add the upstream patch and remove the pin in meta.yml?
Yeah, that sounds good
@minrk Is all good from your side? Should we merge?
numpy 2.0 builds are ABI compatible with numpy 1.19. But petsc4py setup.py injects
numpy >=2,<3
in metadata, causing downstreampip check
to fail with compatible numpy 1.19.Two options:
>=1.19,<3
), or