Skip to content

Conversation

@lysnikolaou
Copy link
Contributor

This is the Cython equivalent of adding a Py_mod_gil slot with Py_MOD_GIL_NOT_USED like we did in #59135.

x-ref #59057.

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.
@mroeschke mroeschke added the Build Library building on various platforms label Jul 15, 2024
endif

cy = meson.get_compiler('cython')
if cy.version().version_compare('>=3.1.0')
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Contributor

@rgommers rgommers left a 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.

@lysnikolaou lysnikolaou requested a review from WillAyd as a code owner July 16, 2024 12:10
@mroeschke mroeschke added this to the 3.0 milestone Jul 16, 2024
@mroeschke mroeschke merged commit 56c80f8 into pandas-dev:main Jul 16, 2024
@mroeschke
Copy link
Member

Thanks @lysnikolaou

@lysnikolaou lysnikolaou deleted the add-freethreading-directive-cython branch July 16, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build Library building on various platforms

3 participants