File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ jobs:
103
103
python --version --version
104
104
which python
105
105
python -c "import sysconfig; print(sysconfig.get_config_var('Py_GIL_DISABLED'))"
106
- python -c "import sys; print(sys. _is_gil_enabled())"
107
- python -c "import sys; import flint; print(sys. _is_gil_enabled())"
106
+ python -c "import sys; print(getattr( sys, ' _is_gil_enabled', lambda: True) ())"
107
+ python -c "import sys; import flint; print(getattr( sys, ' _is_gil_enabled', lambda: True) ())"
108
108
109
109
- run : python -m flint.test --verbose
110
110
Original file line number Diff line number Diff line change @@ -83,10 +83,15 @@ add_project_arguments(
83
83
language : ' cython'
84
84
)
85
85
86
- # Enable free-threading if Cython is new enough:
86
+ # Enable free-threading if Cython is new enough. The check should be
87
+ # >= 3.1.0a1 but meson gets confused by the a1 alpha release suffix.
88
+ # so we go with >= 3.1 (which will be correct once 3.1 is released).
87
89
cy = meson .get_compiler(' cython' )
88
- if cy.version().version_compare(' >=3.1.0a1' )
89
- add_project_arguments (' -Xfreethreading_compatible=true' , language : ' cython' )
90
+ if cy.version().version_compare(' >=3.1' )
91
+ message (' Enabling freethreading' )
92
+ add_project_arguments (' -Xfreethreading_compatible=true' , language : ' cython' )
93
+ else
94
+ message (' Disabling freethreading' )
90
95
endif
91
96
92
97
if get_option (' coverage' )
You can’t perform that action at this time.
0 commit comments