summaryrefslogtreecommitdiff
path: root/dev-python/uv-build/files/uv-build-0.6.9-use-uv.patch
blob: 6e0f96d46ec3affe467b252cc7196794ed3dcefe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/python/uv_build/__init__.py b/python/uv_build/__init__.py
index c8ce9c5..835ba0f 100644
--- a/python/uv_build/__init__.py
+++ b/python/uv_build/__init__.py
@@ -39,11 +39,11 @@ def call(
 
     warn_config_settings(config_settings)
     # Unlike `find_uv_bin`, this mechanism must work according to PEP 517
-    uv_bin = shutil.which("uv-build")
+    uv_bin = shutil.which("uv")
     if uv_bin is None:
         raise RuntimeError("uv was not properly installed")
     # Forward stderr, capture stdout for the filename
-    result = subprocess.run([uv_bin, *args], stdout=subprocess.PIPE)
+    result = subprocess.run([uv_bin, "build-backend", *args], stdout=subprocess.PIPE)
     if result.returncode != 0:
         sys.exit(result.returncode)
     # If there was extra stdout, forward it (there should not be extra stdout)