0

In a python extension using setup.py I have C code linked with the Numpy API. If I compile the project with a current Numpy version I cannot use the built extension with an older Numpy version (see https://github.com/numpy/numpy/blob/8ff45c5bb520db04af8720bf1d34a392a8d2561a/numpy/core/include/numpy/numpyconfig.h). In the other direction it seems to work, i.e. the extension built with an old Numpy version works with a more recent Numpy installation, when upgrading subsequently.

Does anyone have experience with deploying a C code extension (PyPi) as robust as possible and independent of the current Numpy installation?

Andreas
  • 159
  • 1
  • 7
  • 1
    I've definitely seem this recommended in the past: build with the earliest version of Numpy possible, and I think they work fairly hard to preserve forward compatibility. But I can't provide anything more concrete that "I'm sure I read this somewhere" – DavidW Dec 03 '22 at 15:14

0 Answers0