File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 89
89
echo " ===================="
90
90
91
91
# Install python requirements
92
+ GIL_CFLAGS=" "
92
93
echo " Installing requirements [python]"
93
94
if [[ $PYTHON_VERSION == " 3.1" [2-9]* ]]; then
94
95
python -m pip install -U pip wheel setuptools || exit 1
95
- if [[ $PYTHON_VERSION != * " t" ]]; then
96
+ if [[ $PYTHON_VERSION == * " t" ]]; then
97
+ # https://github.com/python/cpython/issues/133779
98
+ GIL_CFLAGS=" -DPy_GIL_DISABLED=0"
99
+ export CFLAGS=" $CFLAGS $GIL_CFLAGS "
100
+ else
96
101
# twine is not installable on freethreaded Python due to cryptography requirement
97
102
python -m pip install -U twine || exit 1
98
103
fi
@@ -154,6 +159,9 @@ if [[ $OSTYPE == "msys" ]]; then # for MSVC cl
154
159
else
155
160
CFLAGS=" -O0 -ggdb -Wall -Wextra -Wcast-qual -Wconversion -Wdeprecated -Wunused-result"
156
161
fi
162
+
163
+ CFLAGS=" $CFLAGS $GIL_CFLAGS "
164
+
157
165
# Trying to cover debug assertions in the CI without adding
158
166
# extra jobs. Therefore, odd-numbered minor versions of Python
159
167
# running C++ jobs get NDEBUG undefined, and even-numbered
You can’t perform that action at this time.
0 commit comments