From 9279461b40d832a3d12dd3c6f1a99ab1501d5813 Mon Sep 17 00:00:00 2001 From: Benjamin Dornel Date: Fri, 7 Jun 2024 21:59:31 +0800 Subject: [PATCH] chore: build pyodide wheel --- .github/workflows/build_pyodide.yml | 2 +- gh_release.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_pyodide.yml b/.github/workflows/build_pyodide.yml index 621e345..fd74b23 100644 --- a/.github/workflows/build_pyodide.yml +++ b/.github/workflows/build_pyodide.yml @@ -58,7 +58,7 @@ jobs: inputs_wheels_linux_pyodide: 1 inputs_wheels_implementations: b run: - sudo apt-get install python3-distutils && python scripts/gh_release.py build + python scripts/gh_release.py build # Upload generated wheels, to be accessible from github Actions page. diff --git a/gh_release.py b/gh_release.py index 96d546f..6b8a4cb 100755 --- a/gh_release.py +++ b/gh_release.py @@ -574,6 +574,8 @@ def pyodide_setup(clean=False): command += f' && echo "### creating venv {venv_pyodide}"' command += f' && {sys.executable} -m venv {venv_pyodide}' command += f' && . {venv_pyodide}/bin/activate' + command += f' && echo "### upgrading pip ..."' + command += f' && python3.12 -m ensurepip --upgrade' command += f' && echo "### running pip install ..."' command += f' && echo "### installing setuptools ..."' command += f' && python -m pip install --upgrade pip wheel setuptools==70.0.0'