Skip to content

Commit 97aabcc

Browse files
committed
3.1.63pre
1 parent 6861ae2 commit 97aabcc

File tree

3 files changed

+27
-43
lines changed

3 files changed

+27
-43
lines changed

scripts/cpython-build-emsdk-prebuilt.sh

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@ PIP="${SDKROOT}/python3-wasm -m pip"
99

1010
# all needed for PEP722/723, hpy, cffi modules and wheel building
1111

12+
for module in flit git+https://github.com/pygame-web/wheel \
13+
typing_extensions mypy_extensions pyproject-metadata \
14+
git+https://github.com/pygame-web/setuptools build pyparsing packaging hatchling setuptools_scm \
15+
git+https://github.com/python-cffi/cffi meson-python git+https://github.com/pypa/installer
16+
do
17+
$PIP install --no-build-isolation --force $module
18+
if $HPIP install --upgrade --force "$module"
19+
then
20+
echo " pre-installing $module" 1>&2
21+
else
22+
echo " TARGET FAILED on required module $module" 1>&2
23+
exit 23
24+
fi
25+
done
26+
1227
if echo $PYBUILD|grep -q 3.13$
1328
then
1429
echo "
@@ -21,6 +36,7 @@ then
2136
2237
"
2338
$HPIP install --upgrade git+https://github.com/cython/cython
39+
$PIP install --upgrade --no-build-isolation git+https://github.com/cython/cython
2440
else
2541
# cython get the latest release on gh install on both host python and build python
2642
pushd build
@@ -31,22 +47,6 @@ else
3147
fi
3248

3349

34-
35-
36-
for module in typing_extensions mypy_extensions pyproject-metadata \
37-
setuptools build wheel pyparsing packaging hatchling setuptools_scm \
38-
git+https://github.com/python-cffi/cffi meson-python git+https://github.com/pypa/installer
39-
do
40-
$PIP install --force $module
41-
if $HPIP install --upgrade --force "$module"
42-
then
43-
echo " pre-installing $module" 1>&2
44-
else
45-
echo " TARGET FAILED on required module $module" 1>&2
46-
exit 23
47-
fi
48-
done
49-
5050
# cannot use wasi ninja yet
5151
$HPIP install --force ninja
5252

scripts/cpython-build-host.sh

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,13 @@ else
2323
fi
2424
fi
2525

26-
# in this special case build testsuite
27-
# main repo https://github.com/pmp-p/python-wasm-plus
28-
26+
# special case build testsuite
2927
# pygame-web won't build test modules
30-
31-
if echo $GITHUB_WORKSPACE|grep -q /python-wasm-plus/
28+
if echo $GITHUB_WORKSPACE|grep -q /python-wasm-sdk/
3229
then
33-
TESTSUITE="--enable-test-modules"
34-
#TESTSUITE=""
30+
TESTSUITE=""
3531
else
3632
TESTSUITE="--enable-test-modules"
37-
#TESTSUITE=""
3833
fi
3934

4035
echo "
@@ -104,11 +99,14 @@ END
10499
" 1>&2
105100
sleep 6
106101
fi
102+
GIL="--disable-gil"
103+
else
104+
GIL=""
107105
fi
108106

109107
if CC=clang CXX=clang++ CFLAGS="-fPIC" CPPFLAGS="-fPIC" \
110108
${ROOT}/src/cpython${PYBUILD}/configure \
111-
--prefix=$HOST_PREFIX $PYOPTS
109+
--prefix=$HOST_PREFIX $PYOPTS $GIL
112110
then
113111
if make -j$(nproc) install
114112
then
@@ -117,24 +115,6 @@ END
117115
echo "failed to build $PYTHON_FOR_BUILD" 1>&2
118116
exit 118
119117
fi
120-
121-
# if make -j$(nproc) install
122-
# then
123-
# rm -rf $(find $ROOT/devices/ -type d|grep __pycache__$)
124-
# rm $HOST_PREFIX/bin/python3-config \
125-
# $HOST_PREFIX/bin/idle3 \
126-
# $HOST_PREFIX/bin/pydoc3 \
127-
# $HOST_PREFIX/bin/python3
128-
129-
# # make ubuntu binaries able to run elsewhere
130-
# patchelf --remove-needed libintl.so.8 $HOST_PREFIX/bin/python${PYBUILD}
131-
# # and able to compile elsewhere
132-
# sed -i 's|-lintl ||g' ${SDKROOT}/devices/x86_64/usr/bin/python${PYBUILD}-config
133-
# cp -Rfv $ROOT/support/__EMSCRIPTEN__.patches/${PYBUILD}/. $HOST_PREFIX/lib/python${PYBUILD}/
134-
# else
135-
# echo "failed to build $PYTHON_FOR_BUILD"
136-
# exit 123
137-
# fi
138118
else
139119
echo "
140120
==========================================================================

scripts/cpython-fetch.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ then
4949
tar xf Python-3.13.0b3.tar.xz
5050
ln -s Python-3.13.0b3 cpython${PYBUILD}
5151

52+
pushd cpython${PYBUILD}
53+
54+
popd
55+
5256
fi
5357

5458
if echo $PYBUILD |grep -q 12$

0 commit comments

Comments
 (0)