|
5 | 5 | CYTHON_REL=${CYTHON_REL:-3.0.8} |
6 | 6 | CYTHON_WHL=${CYTHON:-Cython-${CYTHON_REL}-py2.py3-none-any.whl} |
7 | 7 |
|
8 | | -# all needed for PEP722/723 |
9 | | -PACKAGING="pip build wheel pyparsing packaging" |
10 | | -# PATCHES/installer-1.0.0.dev0-py3-none-any.whl" BUG 3.13 |
11 | | - |
12 | | -$HPIP install --upgrade $PACKAGING |
13 | | - |
14 | | -# setuptools for HPy/static |
15 | | -$HPIP install --upgrade setuptools |
16 | | - |
17 | | -# aioconsole only for the simulator |
18 | | -# $HPIP install --upgrade aioconsole |
19 | | - |
20 | | - |
21 | | - |
22 | | -# support package build/install |
23 | | -$HPY -m pip install --upgrade $PACKAGING |
24 | | - |
25 | 8 | PIP="${SDKROOT}/python3-wasm -m pip" |
26 | 9 |
|
| 10 | +# all needed for PEP722/723, hpy, cffi modules and wheel building |
27 | 11 |
|
28 | | -$HPIP install --upgrade typing_extensions mypy_extensions |
29 | | -$PIP install --upgrade typing_extensions mypy_extensions |
30 | | - |
31 | | -# numpy build |
32 | | -$HPIP install --upgrade meson-python |
33 | | -$PIP install --upgrade meson-python |
34 | | - |
35 | | -$HPIP install --upgrade pyproject-metadata |
36 | | -$PIP install --upgrade pyproject-metadata |
37 | | - |
38 | | -$HPIP install --upgrade ninja |
| 12 | +# pip pip-24.0 broken |
| 13 | +for module in typing_extensions mypy_extensions meson-python pyproject-metadata \ |
| 14 | + setuptools build wheel pyparsing packaging \ |
| 15 | + git+https://github.com/cffi/cffi git+https://github.com/pypa/installer |
| 16 | +do |
| 17 | + if $HPIP install --force $module |
| 18 | + then |
| 19 | + if $PIP install --upgrade --force "$module" |
| 20 | + then |
| 21 | + echo " pre-installing $module" 1>&2 |
| 22 | + else |
| 23 | + echo " TARGET FAILED on required module $module" 1>&2 |
| 24 | + exit 23 |
| 25 | + fi |
| 26 | + else |
| 27 | + echo " HOST FAILED on required module $module" 1>&2 |
| 28 | + exit 27 |
| 29 | + fi |
| 30 | +done |
39 | 31 |
|
| 32 | +# cannot use wasi ninja yet |
| 33 | +$HPIP install --force ninja |
40 | 34 |
|
41 | 35 | echo " |
42 | 36 | * cpython-build-emsdk-prebuilt pip==$PIP * |
43 | 37 | " 1>&2 |
44 | 38 |
|
45 | 39 |
|
46 | | - |
47 | | -$PIP install --upgrade $PACKAGING |
48 | | - |
49 | | -# setuptools for HPy/static |
50 | | -$PIP install --upgrade setuptools |
51 | | - |
52 | | - |
53 | | - |
54 | | -# make wheels |
55 | | -# /opt/python-wasm-sdk/python3-wasm setup.py bdist_wheel |
56 | | - |
57 | | - |
58 | 40 | # cython get the latest release on gh install on both host python and build python |
59 | 41 | pushd build |
60 | 42 | wget -q -c https://github.com/cython/cython/releases/download/${CYTHON_REL}/${CYTHON_WHL} |
|
90 | 72 | done |
91 | 73 |
|
92 | 74 |
|
93 | | - |
94 | | - |
95 | 75 | pushd src |
96 | 76 |
|
97 | 77 | # TODO |
|
0 commit comments