Commit c7ae8b8
authored
fixes for Cython 3.1 support (#753)
#752 identified that a problem existed building from Cython 3.1.0, but it was not clear from the posted errors what the problem was.
The problem appears to be that under 3.1.0 long is note defined - several error messages were observed like:
```
Error compiling Cython file:
------------------------------------------------------------
...
score += 10
continue
if r == 'S' or r == 'I':
if isinstance(arg, int) or (
(isinstance(arg, long) and arg < 2147483648)):
^
------------------------------------------------------------
jnius/jnius_utils.pxi:323:37: undeclared name not builtin: long
```
The solution is to add `from ctypes import c_long as long` where appropriate, following jswhit/pygrib#265 (comment)
Also closes #7521 parent 8d7ec1e commit c7ae8b8
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
467 | 468 | | |
468 | 469 | | |
469 | 470 | | |
| 471 | + | |
470 | 472 | | |
471 | 473 | | |
472 | 474 | | |
| |||
632 | 634 | | |
633 | 635 | | |
634 | 636 | | |
| 637 | + | |
635 | 638 | | |
636 | 639 | | |
637 | 640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
0 commit comments