Description
We have a pyodide-cross-build-environments.json metadata file that stores information on pyodide cross build environments per version.
pyodide-build fetches this file whenever it needs to install cross-build environments. However, that JSON file is rarely updated (once a quarter), and querying that file every time is unnecessary. (related file)
I think we could update
-
pyodide-build to download that file once, store it in the file system.
-
Reuse the downloaded file instead of querying it every time.
-
If the file is too old, say mtime is 72 hours behind the current time, re-download it (we can make this value configurable)
-
Add a pyodide xbuildenv subcommand that users can use to force re-download the metadata file.
Description
We have a pyodide-cross-build-environments.json metadata file that stores information on pyodide cross build environments per version.
pyodide-build fetches this file whenever it needs to install cross-build environments. However, that JSON file is rarely updated (once a quarter), and querying that file every time is unnecessary. (related file)
I think we could update
pyodide-build to download that file once, store it in the file system.
Reuse the downloaded file instead of querying it every time.
If the file is too old, say
mtimeis 72 hours behind the current time, re-download it (we can make this value configurable)Add a
pyodide xbuildenvsubcommand that users can use to force re-download the metadata file.