Skip to content

Cache xbuildenv releases files #234

@ryanking13

Description

@ryanking13

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

  1. pyodide-build to download that file once, store it in the file system.

  2. Reuse the downloaded file instead of querying it every time.

  3. If the file is too old, say mtime is 72 hours behind the current time, re-download it (we can make this value configurable)

  4. Add a pyodide xbuildenv subcommand that users can use to force re-download the metadata file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OSSCA2025Good first issues for OSSCA2025 participantsgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions