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

BLD: switch to Cython 3.0, forbid deprecated Numpy C API in generated code #211

Merged
merged 1 commit into from Aug 22, 2023

Conversation

neutrinoceros
Copy link
Member

@neutrinoceros neutrinoceros commented Jul 28, 2023

Opening as a draft. Build already works (locally) but there may be some performance regressions. Hopefully it'll show in CI.

@neutrinoceros
Copy link
Member Author

Tests are not taking longer than usual, so I think this is good to go ?
@matthewturk , would you advise slapping noexcept on every nogil function anyway ?

@brittonsmith
Copy link
Member

I'm ok with this going in, but I don't have enough expertise in cython to comment on the question raised.

@matthewturk
Copy link
Member

I would advise that, yeah. But it's probably not strictly necessary.

@neutrinoceros
Copy link
Member Author

ok done. I'll merge this and follow-up PRs when tests pass. Thank you both !

@neutrinoceros
Copy link
Member Author

actually, this is causing compilation errors in CI, so I've reverted this part of the patch. Let's just keep in mind that this change may be the first suspect in the event of performance regressions in the near future.

@neutrinoceros neutrinoceros merged commit cc98230 into yt-project:main Aug 22, 2023
9 checks passed
@neutrinoceros neutrinoceros deleted the cython3 branch August 22, 2023 17:17
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.

None yet

3 participants