Skip to content

Add a public API method for searching cross-build environments #202

@agriyakhetarpal

Description

@agriyakhetarpal

Projects like cibuildwheel are currently calling

xbuildenvs_info_str = call(
        "pyodide",
        "xbuildenv",
        "search",
        "--json",
        "--all",
        env=env,
        cwd=CIBW_CACHE_PATH,
        capture_stdout=True,
    ).strip()

in pypa/cibuildwheel#2002, which was first added in #26.


@hoodmane says:

Maybe we should add a Python API for this to pyodide-build.

@agriyakhetarpal says:

Yes, we have a MetadataView class that's used for this: https://github.com/pyodide/pyodide-build/blob/7126c5f1bd56ed7f40ce29cbcbe588267a42434c/pyodide_build/views.py


See pypa/cibuildwheel#2002 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions