-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
ENH: Globally enable Cython free-threading directive #59248
ENH: Globally enable Cython free-threading directive #59248
Conversation
This is the Cython equivalent of adding a `Py_mod_gil` slot with `Py_MOD_GIL_NOT_USED` like we did in pandas-dev#59135.
@@ -44,6 +44,11 @@ else | |||
meson.add_dist_script(py, versioneer, '-o', '_version_meson.py') | |||
endif | |||
|
|||
cy = meson.get_compiler('cython') | |||
if cy.version().version_compare('>=3.1.0') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may have to bump Cython first for this to get hit. Our build dependency is currently ~=3.0.5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cython 3.1.0 has not been released yet. However, in #59136 we install Cython nightly to build 3.13 and free-threading wheels which supports this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGM modulo my one minor comment on add_global_arguments
. The version comparison is right, and this doesn't require bumping the minimum Cython version.
Thanks @lysnikolaou |
This is the Cython equivalent of adding a
Py_mod_gil
slot withPy_MOD_GIL_NOT_USED
like we did in #59135.x-ref #59057.