Skip to content

Feature Request: pyodide build-recipes to support --continue #244

@Andrej730

Description

@Andrej730

As pyodide build-recipes is the main method that's used for building recipes (e.g. in https://pyodide.org/en/0.28.3/development/building-packages-using-recipe.html), would be nice if it would also have --install argument (that's very useful for debugging) and would propagate it to build-recipes-no-deps it's calling in code below:

p = subprocess.run(
[
*run_prefix,
"pyodide",
"build-recipes-no-deps",
self.name,
"--recipe-dir",
str(self.pkgdir.parent),
f"--cflags={build_args.cflags}",
f"--cxxflags={build_args.cxxflags}",
f"--ldflags={build_args.ldflags}",
f"--target-install-dir={build_args.target_install_dir}",
f"--host-install-dir={build_args.host_install_dir}",
f"--build-dir={build_dir}",
# Either this package has been updated and this doesn't
# matter, or this package is dependent on a package that has
# been updated and should be rebuilt even though its own
# files haven't been updated.
"--force-rebuild",
# We already did the rust setup in buildall
"--skip-rust-setup",
],
check=False,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
)

As a temporary hack you can change default value for continue option in build-recipes-no-deps from False to True (see code below), then your pyodide build-recipes will kind of have --continue option by default.

https://github.com/pyodide/pyodide-build/blob/bdd0b1422064de6d92264a08c599e85001a28567/pyodide_build/cli/build_recipes.py#L97C5-L101

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