python-numpy (1.22.0-1) can't be imported

Sun Feb 6 17:35:36 GMT 2022

On Sat, Jan 22 2022, Masamichi Hosoda wrote:

>> It is something like that, but "-Wl,--export-all-symbols"
>> is not used on 1.21.4 and is not needed for most of the other
>> modules on 1.22.x
>> so I am looking for a less extreme action.
>> Also to understand how it can impact other python subpackages
> If I understand correctly, I've found the root cause of the issue.
> I've sent a pull request to numpy.

Based on that pull request, it looks like it's related to the patches
used to avoid python C-extension modules with only one exported function
mentioned a year ago:
>From a glance at the Python C API docs, it looks like Python C extension
modules are supposed to have only one exported function:

The NumPy CFFI tests seem to want to use a few C extension modules as
normal shared libraries, which requires that the functions the tests
want to use to be exported from the DLL, but this seems to be a somewhat
unusual case.

I tend to compile my own versions of Cython (without patches), which may
have been picked up when I compiled the new version of NumPy.

More information about the Cygwin mailing list