Skip to content

Commit

Permalink
Do not use uv on GraalPy
Browse files Browse the repository at this point in the history
  • Loading branch information
timfel committed Jul 20, 2024
1 parent 05ad4bc commit 035f182
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
6 changes: 5 additions & 1 deletion cibuildwheel/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ def build_in_container(
log.build_start(config.identifier)
build_options = options.build_options(config.identifier)
build_frontend = build_options.build_frontend or BuildFrontendConfig("pip")
use_uv = build_frontend.name == "build[uv]" and Version(config.version) >= Version("3.8")
use_uv = (
build_frontend == "build[uv]"
and Version(config.version) >= Version("3.8")
and not config.identifier.startswith("gp")
)
pip = ["uv", "pip"] if use_uv else ["pip"]

dependency_constraint_flags: list[PathOrStr] = []
Expand Down
12 changes: 8 additions & 4 deletions cibuildwheel/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,10 @@ def setup_python(
build_frontend = "build"

uv_path = find_uv()
use_uv = build_frontend == "build[uv]" and Version(python_configuration.version) >= Version(
"3.8"
use_uv = (
build_frontend == "build[uv]"
and Version(python_configuration.version) >= Version("3.8")
and not python_configuration.identifier.startswith("gp")
)

tmp.mkdir()
Expand Down Expand Up @@ -433,8 +435,10 @@ def build(options: Options, tmp_path: Path) -> None:
for config in python_configurations:
build_options = options.build_options(config.identifier)
build_frontend = build_options.build_frontend or BuildFrontendConfig("pip")
use_uv = build_frontend.name == "build[uv]" and Version(config.version) >= Version(
"3.8"
use_uv = (
build_frontend.name == "build[uv]"
and Version(config.version) >= Version("3.8")
and not config.identifier.startswith("gp")
)
uv_path = find_uv()
if use_uv and uv_path is None:
Expand Down
12 changes: 8 additions & 4 deletions cibuildwheel/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,10 @@ def setup_python(
raise ValueError(msg)
assert base_python.exists()

use_uv = build_frontend == "build[uv]" and Version(python_configuration.version) >= Version(
"3.8"
use_uv = (
build_frontend == "build[uv]"
and Version(python_configuration.version) >= Version("3.8")
and not python_configuration.identifier.startswith("gp")
)
uv_path = find_uv()

Expand Down Expand Up @@ -382,8 +384,10 @@ def build(options: Options, tmp_path: Path) -> None:
for config in python_configurations:
build_options = options.build_options(config.identifier)
build_frontend = build_options.build_frontend or BuildFrontendConfig("pip")
use_uv = build_frontend.name == "build[uv]" and Version(config.version) >= Version(
"3.8"
use_uv = (
build_frontend == "build[uv]"
and Version(config.version) >= Version("3.8")
and not config.identifier.startswith("gp")
)
log.build_start(config.identifier)

Expand Down

0 comments on commit 035f182

Please sign in to comment.