Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1ceb82c

Browse files
committedOct 1, 2024·
3.1.68 rel
1 parent 4ceaf3c commit 1ceb82c

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed
 

‎.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-22.04
2020
env:
2121
BUILDS: 3.12 3.13
22-
EMFLAVOUR: tot
22+
EMFLAVOUR: 3.1.68
2323

2424
steps:
2525
- uses: actions/checkout@v3.3.0

‎scripts/cpython-build-emsdk-prebuilt.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
. ${CONFIG:-config}
44

5-
CYTHON_REL=${CYTHON_REL:-3.0.10}
5+
CYTHON_REL=${CYTHON_REL:-3.0.11}
66
CYTHON_WHL=${CYTHON:-Cython-${CYTHON_REL}-py2.py3-none-any.whl}
77

88
PIP="${SDKROOT}/python3-wasm -m pip"
@@ -38,8 +38,8 @@ then
3838
3939
4040
"
41-
$PIP install --upgrade --no-build-isolation git+https://github.com/cython/cython
42-
$HPIP install --upgrade --force git+https://github.com/cython/cython
41+
$PIP install --upgrade --no-build-isolation git+https://github.com/pygame-web/cython.git
42+
$HPIP install --upgrade --force git+https://github.com/pygame-web/cython.git
4343
else
4444
# cython get the latest release on gh install on both host python and build python
4545
pushd build

‎scripts/cpython-build-emsdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ END
198198
sed -i 's|-sWASM_BIGINT||g' configure.ac
199199

200200
# do not mess with wasm sysconfig name
201-
if echo $PYBUILD|grep -q 13$
201+
if echo $PYBUILD|grep -q 3\\.13$
202202
then
203203
GIL="--disable-gil"
204204
sed -i 's|{ABIFLAGS}t|{ABIFLAGS}|g' configure

‎scripts/cpython-build-host.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ END
8181
8282
END
8383

84-
if echo $PYBUILD|grep -q 3.13$
84+
if echo $PYBUILD|grep -q 3\\.13$
8585
then
8686
# Prevent freezing bytecode with a different magic
8787
rm -f $HOST_PREFIX/bin/python3 $HOST_PREFIX/bin/python${PYBUILD}

‎support/__EMSCRIPTEN__.embed/emscriptenmodule.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,5 +873,11 @@ extern PyObject *PyInit_emscripten();
873873
#endif
874874

875875
PyObject *PyInit_emscripten() {
876-
return PyModule_Create(&emscripten_module);
876+
#ifdef Py_GIL_DISABLED
877+
PyObject *emscripten_mod = PyModule_Create(&emscripten_module);
878+
PyUnstable_Module_SetGIL(emscripten_mod, Py_MOD_GIL_NOT_USED);
879+
return emscripten_mod;
880+
#else
881+
return PyModule_Create(&emscripten_module);
882+
#endif
877883
}

0 commit comments

Comments
 (0)
Please sign in to comment.