Skip to content

Commit 8d7a488

Browse files
committed
3.1.61.7pre
1 parent 58232ea commit 8d7a488

File tree

10 files changed

+26
-19
lines changed

10 files changed

+26
-19
lines changed

config

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ export CONFIG_ENV=true
55
export LC_ALL=C
66
export ROOT=${ROOT:-$(pwd)}
77
export SDKROOT=${SDKROOT:-$ROOT}
8-
8+
[ -f $SDKROOT/versions ] && source $SDKROOT/versions
99
export PYTHONDONTWRITEBYTECODE=1
1010
export REBUILD=${REBUILD:-false}
1111
export CI=${CI:-false}
1212

13-
export PYBUILD=${PYBUILD:-3.12}
13+
# PYBUILD comes from versions at runtime. must be specified at build.
1414
export PYMAJOR=$(echo -n $PYBUILD|cut -d. -f1)
1515
export PYMINOR=$(echo -n $PYBUILD|cut -d. -f2)
1616

@@ -55,6 +55,7 @@ EXTRABINS="/usr/local/bin /opt/bin"
5555

5656
# ============ emscripten ==============
5757
# stable==latest dev==tot
58+
# EMFLAVOUR comes from versions at runtime.
5859
export EMFLAVOUR=${EMFLAVOUR:latest}
5960
export EMSDK_QUIET=1
6061
export EMSDK_NOTTY=0

emsdk-cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ RUSTC = False
157157
NINJA = env("NINJA", false)
158158

159159
out = []
160+
out_pos = 0
160161

161162
# special partial linking mode
162163
if "-r" in sys.argv:

python-wasi-sdk.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ for PYBUILD in $BUILDS
7979
do
8080
cd "$ORIGIN"
8181

82+
export PYBUILD
83+
8284

8385
if [ -f ${SDKROOT}/dev ]
8486
then

python-wasm-sdk.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ for PYBUILD in $BUILDS
7979
do
8080
cd "$ORIGIN"
8181

82+
export PYBUILD
83+
8284

8385
if [ -f ${SDKROOT}/dev ]
8486
then

scripts/cpython-fetch.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@ fi
7979

8080
if echo $PYBUILD |grep -q 13$
8181
then
82-
if [ -d Python-3.13.2 ]
82+
if [ -d Python-3.13.3 ]
8383
then
8484
echo " * Using local cpython sources"
8585
else
8686
pwd
8787
ls
8888
echo " * fetching remote cpython sources"
89-
wget -q -c https://www.python.org/ftp/python/3.13.2/Python-3.13.2.tar.xz
90-
tar xf Python-3.13.2.tar.xz || exit 87
89+
wget -q -c https://www.python.org/ftp/python/3.13.3/Python-3.13.3.tar.xz
90+
tar xf Python-3.13.3.tar.xz || exit 87
9191
fi
9292

93-
ln -s Python-3.13.2 cpython${PYBUILD}
93+
ln -s Python-3.13.3 cpython${PYBUILD}
9494

9595
sed -i 's|ProcessPoolExecutor = None|return True|g' cpython3.13/Lib/compileall.py
9696

@@ -125,17 +125,17 @@ fi
125125

126126
if echo $PYBUILD |grep -q 12$
127127
then
128-
wget -q -c https://www.python.org/ftp/python/3.12.9/Python-3.12.9.tar.xz
129-
tar xf Python-3.12.9.tar.xz
130-
ln -s Python-3.12.9 cpython${PYBUILD}
128+
wget -q -c https://www.python.org/ftp/python/3.12.10/Python-3.12.10.tar.xz
129+
tar xf Python-3.12.10.tar.xz
130+
ln -s Python-3.12.10 cpython${PYBUILD}
131131
fi
132132

133133

134134
if echo $PYBUILD | grep -q 11$
135135
then
136-
wget -q -c https://www.python.org/ftp/python/3.11.11/Python-3.11.11.tar.xz
137-
tar xf Python-3.11.11.tar.xz
138-
ln -s Python-3.11.11 cpython${PYBUILD}
136+
wget -q -c https://www.python.org/ftp/python/3.11.12/Python-3.11.12.tar.xz
137+
tar xf Python-3.11.12.tar.xz
138+
ln -s Python-3.11.12 cpython${PYBUILD}
139139
fi
140140

141141
popd

sources.plus/w2c2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
mkdir -p src native build/libdwarf build/zstd
88

9-
DPIC="-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
9+
DPIC="-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5"
1010

1111
pushd src
1212
[ -d libdwarf-code ] || git clone --recursive --no-tags --depth 1 --single-branch --branch main https://github.com/davea42/libdwarf-code

sources.wasm/9000-uuid-ossp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ END
6262
cp -vf /data/git/python-wasm-sdk/libtool ./
6363
chmod u-w+x /tmp/libtool /tmp/shtool libtool
6464

65-
if PATH=/tmp:$PATH CONFIG_SIZE=$(pwd)/config.site emconfigure ../../src/libuuid/configure --with-gnu-ld $mode --disable-shared --prefix=$PREFIX
65+
if PATH=/tmp:$PATH CONFIG_SITE=$(pwd)/config.site emconfigure ../../src/libuuid/configure --with-gnu-ld $mode --disable-shared --prefix=$PREFIX
6666
then
6767
cp -vf /data/git/python-wasm-sdk/{libtool,shtool} /tmp/
6868
cp -vf /data/git/python-wasm-sdk/libtool ./

sources.wasm/9999-version.sh renamed to sources.wasm/9999-versions.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ int main(int argc, char**arv){
4242
END
4343

4444
emcc -sASSERTIONS=0 -sENVIRONMENT=node,web -o hello_em.html hello_em.c
45-
$SDKROOT/emsdk/node/*.*.*64bit/bin/node hello_em.js >> $SDKROOT/config
45+
echo "export PYBUILD=\${PYBUILD:-$PYBUILD}" > $SDKROOT/versions
46+
$SDKROOT/emsdk/node/*.*.*64bit/bin/node hello_em.js >> $SDKROOT/versions
4647
rm hello_em.js hello_em.wasm hello_em.c
4748
popd
4849

wasisdk/bin/wasi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
# https://stackoverflow.com/questions/20530105/how-to-specify-a-custom-stdlib-directory-for-llvm
44
# https://stackoverflow.com/questions/60712261/how-to-prevent-osx-gcc-to-always-search-usr-local-include

wasisdk/wasisdk_env.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

3-
SDKROOT=${SDKROOT:-/opt/python-wasm-sdk}
4-
53
if [[ -z ${WASISDK_ENV+z} ]]
64
then
7-
export WASISDK_ENV=true
5+
SDKROOT=${SDKROOT:-/tmp/sdk}
86
. ${CONFIG:-${SDKROOT}/config}
97

8+
export WASISDK_ENV=true
9+
1010
export WASI=true
1111
export ARCH=wasisdk
1212
export WASISDK=${WASISDK:-"${SDKROOT}/${ARCH}"}

0 commit comments

Comments
 (0)