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?