Skip to content

Commit 02c9e3f

Browse files
committed
python bump
1 parent 9447700 commit 02c9e3f

File tree

2 files changed

+35
-23
lines changed

2 files changed

+35
-23
lines changed

scripts/cpython-fetch.sh

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ fi
4444

4545
if echo $PYBUILD |grep -q 14$
4646
then
47-
wget -c https://www.python.org/ftp/python/3.14.0/Python-3.14.0a5.tar.xz
48-
tar xf Python-3.14.0a5.tar.xz
49-
ln -s Python-3.14.0a5 cpython${PYBUILD}
47+
48+
wget -c https://www.python.org/ftp/python/3.14.0/Python-3.14.0b3.tar.xz
49+
tar xf Python-3.14.0b3.tar.xz
50+
ln -s Python-3.14.0b3 cpython${PYBUILD}
5051

5152
mkdir $SDKROOT/devices/emsdk/usr/lib $SDKROOT/devices/$(arch)/usr/lib -p
5253

@@ -86,10 +87,10 @@ then
8687
pwd
8788
ls
8889
echo " * fetching remote cpython sources"
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
90+
wget -q -c https://www.python.org/ftp/python/3.13.5/Python-3.13.5.tar.xz
91+
tar xf Python-3.13.5.tar.xz || exit 90
92+
ln -s Python-3.13.5 cpython${PYBUILD}
9193

92-
ln -s Python-3.13.3 cpython${PYBUILD}
9394

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

@@ -125,17 +126,20 @@ fi
125126

126127
if echo $PYBUILD |grep -q 12$
127128
then
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}
129+
wget -q -c https://www.python.org/ftp/python/3.12.11/Python-3.12.11.tar.xz
130+
tar xf Python-3.12.11.tar.xz
131+
ln -s Python-3.12.11 cpython${PYBUILD}
131132
fi
132133

133134

134135
if echo $PYBUILD | grep -q 11$
135136
then
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}
137+
# wget -q -c https://www.python.org/ftp/python/3.11.12/Python-3.11.12.tar.xz
138+
# tar xf Python-3.11.12.tar.xz
139+
# ln -s Python-3.11.12 cpython${PYBUILD}
140+
wget -q -c https://www.python.org/ftp/python/3.11.13/Python-3.11.13.tar.xz
141+
tar xf Python-3.11.13.tar.xz
142+
ln -s Python-3.11.13 cpython${PYBUILD}
139143
fi
140144

141145
popd
@@ -145,7 +149,7 @@ popd
145149
if [ -f support/__EMSCRIPTEN__.patches/${PYBUILD}-host.diff ]
146150
then
147151
pushd src/cpython${PYBUILD}
148-
patch -p1 < ../../support/__EMSCRIPTEN__.patches/${PYBUILD}-host.diff
152+
patch -p1 < ../../support/__EMSCRIPTEN__.patches/${PYBUILD}-host.diff
149153
popd
150154
fi
151155

wasisdk/hotfix/patch.h

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
#include <stdio.h>
1+
#include <stdio.h> // for FILE
2+
static FILE *
3+
popen(const char *command, const char *type){
4+
return NULL;
5+
}
6+
7+
static int
8+
pclose(FILE *stream){
9+
(void)stream;
10+
return 0;
11+
}
12+
13+
#ifndef __wasilibc_use_wasip2
14+
#define __wasi__p1
15+
216
#include <string.h>
317
#include <stdlib.h>
418
#include <errno.h>
@@ -13,10 +27,6 @@
1327
#define LOCK_EX 2
1428
#define LOCK_NB 4
1529

16-
static FILE *
17-
popen(const char *command, const char *type){
18-
return NULL;
19-
}
2030

2131
static char *
2232
__randname(char *tmpl)
@@ -136,11 +146,6 @@ lockf(int fd, int cmd, off_t len) {
136146
return 0;
137147
}
138148

139-
static int
140-
pclose(FILE *stream){
141-
(void)stream;
142-
return 0;
143-
}
144149

145150

146151
static pid_t
@@ -313,3 +318,6 @@ hstrerror(int ecode)
313318
{
314319
return &cc_hstrerror[0];
315320
}
321+
#else
322+
#define __wasi__p2
323+
#endif // __wasi__p2

0 commit comments

Comments
 (0)