@@ -393,9 +393,9 @@ cat > $HOST_PREFIX/bin/python3-wasm <<END
393393
394394# most important
395395export 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.
399399export PYTHONSTARTUP=$ROOT /support/__EMSCRIPTEN__.py
400400
401401# so include dirs are good
@@ -407,40 +407,16 @@ export PYTHONHOME=$PREFIX
407407PYTHONPATH=${HOST_PREFIX} /lib/python\$ {PYBUILD}/site-packages:\$ PYTHONPATH
408408export PYTHONPATH=${SDKROOT} /prebuilt/${TARGET} /\$ {PYBUILD}:${HOST_PREFIX} /lib/python\$ {PYBUILD}/lib-dynload:\$ PYTHONPATH
409409
410- # just in case
411410export _PYTHON_HOST_PLATFORM=${PYDK_PYTHON_HOST_PLATFORM}
412411export PYTHON_FOR_BUILD=${HOST_PREFIX} /bin/python\$ {PYBUILD}
413412
414- ${HOST_PREFIX} /bin/python \$ {PYBUILD } -u -B "\$ @"
413+ \$ {PYTHON_FOR_BUILD } -u -B "\$ @"
415414END
416415
417416chmod +x $HOST_PREFIX /bin/python3-wasm
418417
419418
420-
421419cp -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-
445421unset PYTHON_FOR_BUILD
446422unset EMCC_CFLAGS
0 commit comments