Skip to content

Conversation

kliem
Copy link

@kliem kliem commented May 30, 2022

As a follow-up on the merged PR

... this PR removes the optional-compile dependency on pari as proposed in the discussion of sagemath/cypari2#109.

This should be merged only after

Resolves #125

@videlec
Copy link

videlec commented May 31, 2022

Sounds good. Though this is lacking documentation!

@kliem
Copy link
Author

kliem commented Jun 1, 2022

I added some documentation as requested.

@mkoeppe
Copy link

mkoeppe commented Nov 11, 2022

Is this waiting for further review, or what's the status here?

tornaria added a commit to tornaria/cysignals that referenced this pull request Jan 14, 2025
There was a typo in sagemath#181: when the pari sigint handling was converted
to a general mechanism, the line

```
    PARI_SIGINT_pending = 0;
```

got translated into

```
    custom_signal_unblock();
```
instead of the correct
```
    custom_set_pending_signal(0);
```

This error didn't take effect until sagemath#166 removed the pari sigint
handling.

This causes some doctest failures in sagemath:
```
src/sage/coding/linear_code.py
src/sage/geometry/integral_points.pxi
src/sage/rings/integer.pyx
src/sage/rings/polynomial/polynomial_element.pyx
```
related to mishandling of AlarmInterrupt.

See: https://github.com/sagemath/cysignals/pull/181/files#r1904885037
dimpase pushed a commit that referenced this pull request Jan 14, 2025
There was a typo in #181: when the pari sigint handling was converted
to a general mechanism, the line

```
    PARI_SIGINT_pending = 0;
```

got translated into

```
    custom_signal_unblock();
```
instead of the correct
```
    custom_set_pending_signal(0);
```

This error didn't take effect until #166 removed the pari sigint
handling.

This causes some doctest failures in sagemath:
```
src/sage/coding/linear_code.py
src/sage/geometry/integral_points.pxi
src/sage/rings/integer.pyx
src/sage/rings/polynomial/polynomial_element.pyx
```
related to mishandling of AlarmInterrupt.

See: https://github.com/sagemath/cysignals/pull/181/files#r1904885037
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace compile-time dependency on pari by run-time dispatch
3 participants