From 6683a1bff854bc25429cbdb0a0194ac8f9411c6c Mon Sep 17 00:00:00 2001 From: Gyeongjae Choi Date: Mon, 6 Jan 2025 14:06:02 +0000 Subject: [PATCH] don't set platform --- pyodide_build/pypabuild.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pyodide_build/pypabuild.py b/pyodide_build/pypabuild.py index 57e60c3..8a09f4e 100644 --- a/pyodide_build/pypabuild.py +++ b/pyodide_build/pypabuild.py @@ -265,14 +265,16 @@ def switch_index_url(index_url: str) -> Generator[None, None, None]: env = { "PIP_INDEX_URL": index_url, - "PIP_PLATFORM": " ".join( - [ - f"pyodide_{get_build_flag("PYODIDE_ABI_VERSION")}_wasm32", - HOST_ARCH, - ] - ), } + # import build + # build._ctx.VERBOSITY.set(1) + + # def log(msg, *args, **kwargs): + # print(msg, str(kwargs)) + + # build._ctx.LOGGER.set(log) + with common.replace_env(env) as replaced_env: yield replaced_env