Skip to content

Commit ebf0bca

Browse files
scripts/test.py:minor change to comments and diagnostics.
1 parent 5a96cb6 commit ebf0bca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@
123123
`pyodide build`. This runs our setup.py with CC etc set up
124124
to create Pyodide binaries in a wheel called, for example,
125125
`PyMuPDF-1.23.2-cp311-none-emscripten_3_1_32_wasm32.whl`.
126+
127+
It seems that sys.version must match the Python version inside emsdk;
128+
as of 2025-02-14 this is 3.12. Otherwise we get build errors such as:
129+
[wasm-validator error in function 723] unexpected false: all used features should be allowed, on ...
130+
126131
127132
Environment:
128133
PYMUDF_SCRIPTS_TEST_options
@@ -159,6 +164,9 @@ def main(argv):
159164
if len(argv) == 1:
160165
show_help()
161166
return
167+
168+
log(f'{sys.executable=}')
169+
log(f'{sys.version=}')
162170

163171
build_isolation = None
164172
valgrind = False

0 commit comments

Comments
 (0)