Updates for Pyodide builds after pyodide-build was unvendored (#2090)
* Fix typos and capitalise * Add docstring for `install_xbuildenv` function * Include Emscripten, Pyodide version in logger messages * Mark separation of pyodide-build and Pyodide * Bump to Pyodide 0.26.4 (py3.12.7) + pyodide-build 0.29.0 * Use pyodide-build version as the source of truth * Update Pyodide constraints * Use 3.12 as the Python version instead of 3.12.7 Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com> * chore: appease the formatter --------- Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
This commit is contained in:
co-authored by
Henry Schreiner
parent
fd990007be
commit
109020ed2d
+2
-2
@@ -106,10 +106,10 @@ def update_constraints(session: nox.Session) -> None:
|
||||
pyodides = build_platforms["pyodide"]["python_configurations"]
|
||||
for pyodide in pyodides:
|
||||
python_version = ".".join(pyodide["version"].split(".")[:2])
|
||||
pyodide_version = pyodide["pyodide_version"]
|
||||
pyodide_build_version = pyodide["pyodide_build_version"]
|
||||
output_file = resources / f"constraints-pyodide{python_version.replace('.', '')}.txt"
|
||||
tmp_file = Path(session.create_tmp()) / "constraints-pyodide.in"
|
||||
tmp_file.write_text(f"pip\nbuild[virtualenv]\npyodide-build=={pyodide_version}")
|
||||
tmp_file.write_text(f"pip\nbuild[virtualenv]\npyodide-build=={pyodide_build_version}")
|
||||
session.run(
|
||||
"uv",
|
||||
"pip",
|
||||
|
||||
Reference in New Issue
Block a user