Skip to content

Commit 4e6cadd

Browse files
scripts/test.py: give immediate error if pyodide build is attempted with wrong python version.
Pyodide builds currently require Python-3.12.
1 parent 4b0ff58 commit 4e6cadd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,9 @@ def pyodide_setup(
541541
command += ' && pyodide build --exports pyinit'
542542
subprocess.run(command, shell=1, check=1)
543543
'''
544+
545+
pv = platform.python_version_tuple()[:2]
546+
assert pv == ('3', '12'), f'Pyodide builds need to be run with Python-3.12 but current Python is {platform.python_version()}.'
544547
command = f'cd {directory}'
545548

546549
# Clone/update emsdk. We always use the latest emsdk with `git pull`.

0 commit comments

Comments
 (0)