Skip to content

Commit cd5eebb

Browse files
committed
3.1.72pre
1 parent 4516d10 commit cd5eebb

File tree

3 files changed

+7
-27
lines changed

3 files changed

+7
-27
lines changed

scripts/cpython-build-emsdk.sh

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,9 @@ cat > $HOST_PREFIX/bin/python3-wasm <<END
393393
394394
# most important
395395
export CC=emcc
396-
export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__emscripten_debug
396+
export _PYTHON_SYSCONFIGDATA_NAME=\${_PYTHON_SYSCONFIGDATA_NAME:-_sysconfigdata__emscripten_debug}
397397
398-
# it's just for interactive python testing of modules.
398+
# reserved for interactive python testing of modules.
399399
export PYTHONSTARTUP=$ROOT/support/__EMSCRIPTEN__.py
400400
401401
# so include dirs are good
@@ -407,40 +407,16 @@ export PYTHONHOME=$PREFIX
407407
PYTHONPATH=${HOST_PREFIX}/lib/python\${PYBUILD}/site-packages:\$PYTHONPATH
408408
export PYTHONPATH=${SDKROOT}/prebuilt/${TARGET}/\${PYBUILD}:${HOST_PREFIX}/lib/python\${PYBUILD}/lib-dynload:\$PYTHONPATH
409409
410-
# just in case
411410
export _PYTHON_HOST_PLATFORM=${PYDK_PYTHON_HOST_PLATFORM}
412411
export PYTHON_FOR_BUILD=${HOST_PREFIX}/bin/python\${PYBUILD}
413412
414-
${HOST_PREFIX}/bin/python\${PYBUILD} -u -B "\$@"
413+
\${PYTHON_FOR_BUILD} -u -B "\$@"
415414
END
416415

417416
chmod +x $HOST_PREFIX/bin/python3-wasm
418417

419418

420-
421419
cp -f $HOST_PREFIX/bin/python3-wasm ${SDKROOT}/
422420

423-
# TODO: FIXME:
424-
#echo "386: cannot use python3-wasm as python3 for setup.py in pygame build" 1>&2
425-
#ln -sf $HOST_PREFIX/bin/python${PYBUILD} $HOST_PREFIX/bin/python3
426-
427-
#HPFX=./devices/$(arch)/usr/lib/python${PYBUILD}
428-
#TPFX=./devices/emsdk/usr/lib/python${PYBUILD}
429-
430-
#rm $TPFX/ensurepip/_bundled/setuptools-*.whl
431-
432-
#for moveit in setuptools distutils _distutils _distutils_hack pkg_resources
433-
#do
434-
# echo "
435-
# * migrating ${moveit}
436-
#" 1>&2
437-
# cp -rf $HPFX/${moveit} $TPFX/
438-
# cp -rf $HPFX/${moveit}-* $TPFX/
439-
# cp -rf $HPFX/site-package/${moveit} $TPFX/site-package/
440-
# cp -rf $HPFX/site-package/${moveit}-* $TPFX/site-package/
441-
#done
442-
443-
444-
445421
unset PYTHON_FOR_BUILD
446422
unset EMCC_CFLAGS

wasisdk/bin/emconfigure

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
CONFIGURE=true $@ --host $(arch) --target=wasm32-unknown-wasi --with-template=wasi

wasisdk/bin/emmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
$@

0 commit comments

Comments
 (0)