File tree Expand file tree Collapse file tree 5 files changed +26
-28
lines changed Expand file tree Collapse file tree 5 files changed +26
-28
lines changed Original file line number Diff line number Diff line change @@ -150,31 +150,19 @@ jobs:
150
150
151
151
strategy :
152
152
fail-fast : false
153
- matrix :
154
- emsdk_ver : ["3.1.45"]
155
153
156
154
steps :
157
155
- uses : actions/checkout@v4
158
156
159
- - name : Install micromamba
160
- uses : mamba-org/setup-micromamba@v1
157
+ - name : install mamba
158
+ uses : mamba-org/setup-micromamba@main
161
159
with :
162
160
environment-file : environment-wasm-build.yml
163
-
164
- - name : Setup emsdk
165
- shell : bash -l {0}
166
- run : |
167
- cd $HOME
168
- git clone https://github.com/emscripten-core/emsdk.git
169
- cd emsdk
170
- ./emsdk install ${{ matrix.emsdk_ver }}
171
- ./emsdk activate ${{ matrix.emsdk_ver }}
161
+ init-shell : bash
172
162
173
163
- name : Build and pack xeus-python
164
+ shell : bash -l {0}
174
165
run : |
175
- $HOME/emsdk/emsdk activate ${{matrix.emsdk_ver}}
176
- source $HOME/emsdk/emsdk_env.sh
177
-
178
166
micromamba create -f environment-wasm-host.yml --platform=emscripten-wasm32
179
167
180
168
mkdir build
@@ -188,6 +176,8 @@ jobs:
188
176
rm -f $PREFIX/bin/python*
189
177
190
178
emcmake cmake \
179
+ -DCMAKE_PREFIX_PATH=$PREFIX \
180
+ -DCMAKE_INSTALL_PREFIX=$PREFIX \
191
181
-DCMAKE_BUILD_TYPE=Release \
192
182
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON \
193
183
-DXPYT_EMSCRIPTEN_WASM_BUILD=ON \
Original file line number Diff line number Diff line change 54
54
55
55
# JS artifacts
56
56
node_modules /
57
+
58
+ post.js.in
Original file line number Diff line number Diff line change @@ -378,11 +378,14 @@ endif()
378
378
if (EMSCRIPTEN )
379
379
# TODO MAKE BETTER
380
380
SET (PYTHON_UTIL_LIBS
381
- $ENV{PREFIX} /lib/libbz2.a
382
- $ENV{PREFIX} /lib/libz.a
383
- $ENV{PREFIX} /lib/libsqlite3.a
384
- $ENV{PREFIX} /lib/libffi.a
385
- $ENV{PREFIX} /lib/libzstd.a
381
+ ${CMAKE_INSTALL_PREFIX} /lib/libbz2.a
382
+ ${CMAKE_INSTALL_PREFIX} /lib/libz.a
383
+ ${CMAKE_INSTALL_PREFIX} /lib/libsqlite3.a
384
+ ${CMAKE_INSTALL_PREFIX} /lib/libffi.a
385
+ ${CMAKE_INSTALL_PREFIX} /lib/libzstd.a
386
+ ${CMAKE_INSTALL_PREFIX} /lib/libssl.a
387
+ ${CMAKE_INSTALL_PREFIX} /lib/libcrypto.a
388
+ ${CMAKE_INSTALL_PREFIX} /lib/liblzma.a
386
389
)
387
390
388
391
add_executable (xpython ${XPYTHON_WASM_SRC} )
Original file line number Diff line number Diff line change 1
1
name : xeus-python-wasm-build
2
2
channels :
3
+ - https://repo.prefix.dev/emscripten-forge-dev
3
4
- conda-forge
4
5
dependencies :
5
6
- cmake
7
+ - emscripten_emscripten-wasm32==3.1.73
6
8
- pip
7
- - python=3.11
9
+ - python=3.13
8
10
- yarn
9
- - click
11
+ - click
Original file line number Diff line number Diff line change 1
1
name : xeus-python-wasm-host
2
2
channels :
3
- - https://repo.mamba.pm /emscripten-forge
4
- - https://repo.mamba.pm /conda-forge
3
+ - https://repo.prefix.dev /emscripten-forge-dev
4
+ - https://repo.prefix.dev /conda-forge
5
5
dependencies :
6
6
- ipython
7
7
- pybind11
@@ -10,9 +10,10 @@ dependencies:
10
10
- pybind11_json
11
11
- numpy
12
12
- xeus-lite
13
- - xeus
13
+ - xeus
14
14
- xeus-python-shell>=0.6.3
15
- - pyjs>=2.0.0
16
- - requests-wasm-polyfill>=0.3.0
15
+ - pyjs >=2,<3
17
16
- libpython
18
17
- zstd
18
+ - openssl
19
+ - xz
You can’t perform that action at this time.
0 commit comments