I don't think mingw is particularly supported as a compiler for Python extension modules so that doesn't help with understand anything. The fact it works on MSVC suggests that it's a mingw configuration problem rather than a Cython problem specifically. My first guess would be that Py_ssize_t is defined wrongly. If there are config errors with mingw then I'd be a little worried that this won't be the only bug you see.
We could potentially add a guard to disable CYTHON_IMMORTAL_CONSTANTS with 32 bit mingw. It'd be untested (because it's not a configuration we test) but if we know it's a problem then it's not a big deal to disable it.
clang-cl might be a better option if you can't use MSVC (depending on why you can't use MSVC...). It's a wrapper for clang, that goes to reasonable lengths to be binary compatible with MSVC. It's not currently supported by setuptools unfortunately though. But it might be worth exploring as the closest thing to a support alternative compiler as exists on Windows.
In the short-term though it sounds like you should disable CYTHON_IMMORTAL_CONSTANTS and not spend more time on it.
David
--
---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cython-users/24139783-aa95-4b18-a363-15b799204126n%40googlegroups.com.
You can use pypinfo to get download statistics.
If I do `pypinfo -l 200 "jq==1.10.0" file` then your most
downloaded 32bit Windows wheels over the last month are:
| jq-1.10.0-cp310-cp310-win32.whl
|
7 |
| jq-1.10.0-cp311-cp311-win32.whl
|
6 |
| jq-1.10.0-cp313-cp313-win32.whl
|
6 |
| jq-1.10.0-cp312-cp312-win32.whl
|
6 |
with 6 or 7 downloads each. For comparison your top Window 64
download was:
| jq-1.10.0-cp38-cp38-win_amd64.whl
|
2,311 |
(Not sure why, but your 64 bit Windows users don't seem to like updating Python).
And your most downloaded wheel overall is
|
jq-1.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| 731,924 |
So you can probably safely drop 32 bit Windows.
To view this discussion visit https://groups.google.com/d/msgid/cython-users/8fb6c36b-a60b-4ef0-b017-e0f3b0c2f17bn%40googlegroups.com.