diff --git a/pyodide_build/config.py b/pyodide_build/config.py index d61b002..2490ea7 100644 --- a/pyodide_build/config.py +++ b/pyodide_build/config.py @@ -175,6 +175,7 @@ def to_env(self) -> dict[str, str]: "path": "PATH", "zip_compression_level": "PYODIDE_ZIP_COMPRESSION_LEVEL", "skip_emscripten_version_check": "SKIP_EMSCRIPTEN_VERSION_CHECK", + "build_dependency_index_url": "BUILD_DEPENDENCY_INDEX_URL", # maintainer only "_f2c_fixes_wrapper": "_F2C_FIXES_WRAPPER", } @@ -190,6 +191,7 @@ def to_env(self) -> dict[str, str]: "rust_toolchain", "meson_cross_file", "skip_emscripten_version_check", + "build_dependency_index_url", # maintainer only "_f2c_fixes_wrapper", } @@ -208,6 +210,7 @@ def to_env(self) -> dict[str, str]: # Other configuration "pyodide_jobs": "1", "skip_emscripten_version_check": "0", + "build_dependency_index_url": "https://pypi.anaconda.org/pyodide/simple", # maintainer only "_f2c_fixes_wrapper": "", } diff --git a/pyodide_build/tests/test_config.py b/pyodide_build/tests/test_config.py index 88bedb8..69b4911 100644 --- a/pyodide_build/tests/test_config.py +++ b/pyodide_build/tests/test_config.py @@ -89,6 +89,7 @@ def test_load_config_from_file( ldflags = "-L/path/to/lib" rust_toolchain = "nightly" meson_cross_file = "$(MESON_CROSS_FILE)" + build_dependency_index_url = "https://example.com/simple" """) xbuildenv_manager = CrossBuildEnvManager( @@ -103,6 +104,7 @@ def test_load_config_from_file( assert config["ldflags"] == "-L/path/to/lib" assert config["rust_toolchain"] == "nightly" assert config["meson_cross_file"] == "/path/to/crossfile" + assert config["build_dependency_index_url"] == "https://example.com/simple" def test_config_all(self, dummy_xbuildenv, reset_env_vars, reset_cache): xbuildenv_manager = CrossBuildEnvManager(