Set pip as the default value of default
This commit is contained in:
@@ -176,7 +176,7 @@ def build_in_container(
|
|||||||
for config in platform_configs:
|
for config in platform_configs:
|
||||||
log.build_start(config.identifier)
|
log.build_start(config.identifier)
|
||||||
build_options = options.build_options(config.identifier)
|
build_options = options.build_options(config.identifier)
|
||||||
build_frontend = build_frontend_or_default(build_options.build_frontend, "pip")
|
build_frontend = build_frontend_or_default(build_options.build_frontend)
|
||||||
|
|
||||||
dependency_constraint_flags: list[PathOrStr] = []
|
dependency_constraint_flags: list[PathOrStr] = []
|
||||||
|
|
||||||
|
|||||||
@@ -332,7 +332,7 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
|
|
||||||
for config in python_configurations:
|
for config in python_configurations:
|
||||||
build_options = options.build_options(config.identifier)
|
build_options = options.build_options(config.identifier)
|
||||||
build_frontend = build_frontend_or_default(build_options.build_frontend, "pip")
|
build_frontend = build_frontend_or_default(build_options.build_frontend)
|
||||||
log.build_start(config.identifier)
|
log.build_start(config.identifier)
|
||||||
|
|
||||||
identifier_tmp_dir = tmp_path / config.identifier
|
identifier_tmp_dir = tmp_path / config.identifier
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ BuildFrontend = Literal["pip", "build"]
|
|||||||
|
|
||||||
|
|
||||||
def build_frontend_or_default(
|
def build_frontend_or_default(
|
||||||
setting: BuildFrontend | Literal["default"], default: BuildFrontend
|
setting: BuildFrontend | Literal["default"], default: BuildFrontend = "pip"
|
||||||
) -> BuildFrontend:
|
) -> BuildFrontend:
|
||||||
if setting == "default":
|
if setting == "default":
|
||||||
return default
|
return default
|
||||||
|
|||||||
@@ -368,7 +368,7 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
|
|
||||||
for config in python_configurations:
|
for config in python_configurations:
|
||||||
build_options = options.build_options(config.identifier)
|
build_options = options.build_options(config.identifier)
|
||||||
build_frontend = build_frontend_or_default(build_options.build_frontend, "pip")
|
build_frontend = build_frontend_or_default(build_options.build_frontend)
|
||||||
log.build_start(config.identifier)
|
log.build_start(config.identifier)
|
||||||
|
|
||||||
identifier_tmp_dir = tmp_path / config.identifier
|
identifier_tmp_dir = tmp_path / config.identifier
|
||||||
|
|||||||
Reference in New Issue
Block a user