Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation with recent Cython 3.x versions #415

Merged

Conversation

danieldk
Copy link
Contributor

Description

Recent versions of Cython 3.x refuse to compile the _get_span2wp_alignment function because it always requires acquiring the GIL to check if any exceptions are raised. Change the function signature to return an int, so that -1 can be used to signal that an exception occured.

It's not safe to qualify the function noexcept, since some calls can throw an exception.

Types of change

Bugfix

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.
  • I ran the tests, and all new and existing tests passed.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

Recent versions of Cython 3.x refuse to compile the
`_get_span2wp_alignment` function because it always requires acquiring
the GIL to check if any exceptions are raised. Change the function
signature to return an `int`, so that `-1` can be used to signal that
an exception occured.

It's not safe to qualify the function `noexcept`, since some calls can
throw an exception.
@danieldk danieldk added the bug Something isn't working label Apr 24, 2024
@svlandeg svlandeg merged commit ba6bf82 into explosion:master Apr 24, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants