File tree Expand file tree Collapse file tree 5 files changed +13
-7
lines changed
support/__EMSCRIPTEN__.embed Expand file tree Collapse file tree 5 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 19
19
runs-on : ubuntu-22.04
20
20
env :
21
21
BUILDS : 3.12 3.13
22
- EMFLAVOUR : tot
22
+ EMFLAVOUR : 3.1.68
23
23
24
24
steps :
25
25
- uses : actions/checkout@v3.3.0
Original file line number Diff line number Diff line change 2
2
3
3
. ${CONFIG:- config}
4
4
5
- CYTHON_REL=${CYTHON_REL:- 3.0.10 }
5
+ CYTHON_REL=${CYTHON_REL:- 3.0.11 }
6
6
CYTHON_WHL=${CYTHON:- Cython-${CYTHON_REL} -py2.py3-none-any.whl}
7
7
8
8
PIP=" ${SDKROOT} /python3-wasm -m pip"
38
38
39
39
40
40
"
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
43
43
else
44
44
# cython get the latest release on gh install on both host python and build python
45
45
pushd build
Original file line number Diff line number Diff line change 198
198
sed -i ' s|-sWASM_BIGINT||g' configure.ac
199
199
200
200
# do not mess with wasm sysconfig name
201
- if echo $PYBUILD | grep -q 13$
201
+ if echo $PYBUILD | grep -q 3 \\ . 13$
202
202
then
203
203
GIL=" --disable-gil"
204
204
sed -i ' s|{ABIFLAGS}t|{ABIFLAGS}|g' configure
Original file line number Diff line number Diff line change 81
81
82
82
END
83
83
84
- if echo $PYBUILD | grep -q 3.13$
84
+ if echo $PYBUILD | grep -q 3\\ .13$
85
85
then
86
86
# Prevent freezing bytecode with a different magic
87
87
rm -f $HOST_PREFIX /bin/python3 $HOST_PREFIX /bin/python${PYBUILD}
Original file line number Diff line number Diff line change @@ -873,5 +873,11 @@ extern PyObject *PyInit_emscripten();
873
873
#endif
874
874
875
875
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
877
883
}
You can’t perform that action at this time.
0 commit comments