diff options
author | Masamichi Hosoda <trueroad@trueroad.jp> | 2022-01-23 11:37:29 +0900 |
---|---|---|
committer | Masamichi Hosoda <trueroad@trueroad.jp> | 2022-01-23 17:45:26 +0900 |
commit | d88a07e46e39c8f9c13cca6b6b0e18b9350162dc (patch) | |
tree | 53e5daeed577a68a8b2cab9c35b6f2459592e064 /numpy/array_api/_set_functions.py | |
parent | 37f3d19b5c196111f3a37ff81503cebf0199b638 (diff) | |
download | numpy-d88a07e46e39c8f9c13cca6b6b0e18b9350162dc.tar.gz |
BUG: Fix CI failure by adding symbols to be exported on Cygwin
There are two types of Cython in the Cygwin environment.
One is a Cygwin package's Cython,
which does not add a `__declspec(dllexport)` attribute to symbols
due to its custom patch.
The other is Cython, which is installed with pip and has no custom patches,
so the symbols are added the `__declspec(dllexport)` attribute.
Since CI uses symbols in distributions.c by cffi, we need to export them.
The commit b797a0cb97a8a9e7e36962dc8c37c075967aa88b exports the symbols
by adding the `__declspec(dllexport)` attribute to them.
However, in the Cygwin package's Cython environment,
the symbols required for import are not exported
and the module cannot be imported.
https://cygwin.com/pipermail/cygwin/2022-January/250481.html
By the previous commit, the `__declspec(dllexport)` attribute is removed,
so in the environment, the required symbols are exported
and the module can be imported.
However, on the other hand, in the pip-installed Cython environment,
the symbols used by cffi are not exported, so CI failed.
This commit exports the symbols without `__declspec(dllexport)`
for use by cffi.
It exports both the symbols required for import
and the symbols used for cffi,
regardless of which Cython environment is used.
Diffstat (limited to 'numpy/array_api/_set_functions.py')
0 files changed, 0 insertions, 0 deletions