Loading build_wheel/__main__.py +5 −1 Original line number Diff line number Diff line Loading @@ -19,8 +19,9 @@ PLATFORM_OPTS = ["all", *PLATFORMS] @click.command @click.option("--output", type=click.Path(file_okay=False), default="dist") @click.option("--platform", "platforms", type=click.Choice(PLATFORM_OPTS), multiple=True, default=["all"]) @click.option("--builder") @click.argument("packages", nargs=-1, required=True) def cli(output: str, platforms: Sequence[str], packages: Sequence[str]) -> None: def cli(output: str, platforms: Sequence[str], packages: Sequence[str], builder: str|None) -> None: config_resource = resources.files(__package__) / "bake.hcl" if "all" in platforms: Loading @@ -31,6 +32,9 @@ def cli(output: str, platforms: Sequence[str], packages: Sequence[str]) -> None: *(f"--set=*.platform={platform}" for platform in platforms), ] if builder: cmd.append(f"--builder={builder}") with resources.as_file(config_resource) as config: cmd += ["--file", config] env = os.environ.copy() Loading Loading
build_wheel/__main__.py +5 −1 Original line number Diff line number Diff line Loading @@ -19,8 +19,9 @@ PLATFORM_OPTS = ["all", *PLATFORMS] @click.command @click.option("--output", type=click.Path(file_okay=False), default="dist") @click.option("--platform", "platforms", type=click.Choice(PLATFORM_OPTS), multiple=True, default=["all"]) @click.option("--builder") @click.argument("packages", nargs=-1, required=True) def cli(output: str, platforms: Sequence[str], packages: Sequence[str]) -> None: def cli(output: str, platforms: Sequence[str], packages: Sequence[str], builder: str|None) -> None: config_resource = resources.files(__package__) / "bake.hcl" if "all" in platforms: Loading @@ -31,6 +32,9 @@ def cli(output: str, platforms: Sequence[str], packages: Sequence[str]) -> None: *(f"--set=*.platform={platform}" for platform in platforms), ] if builder: cmd.append(f"--builder={builder}") with resources.as_file(config_resource) as config: cmd += ["--file", config] env = os.environ.copy() Loading