[Numpy-discussion] Determining NPY_ABI_VERSION statically in compiled extensions

Robert T. McGibbon rmcgibbo at gmail.com
Mon Oct 8 16:31:47 EDT 2018


Is anyone aware of any tricks that can be played with tools like `readelf`,
`nm` or `dlopen` / `dlsym` in order to statically determine what version of
numpy a fully-compiled C extension (for example, found inside a wheel) was
compiled against? Even if it only worked with relatively new versions of
numpy, that would be fine.

I'm interested in creating something similar to
https://github.com/pypa/auditwheel that could statically check for
compatibility between wheel files and python installations, in situations
where the metadata about how they were compiled is missing.
-- 
-Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20181008/2f53d801/attachment.html>


More information about the NumPy-Discussion mailing list