Skip to content

Commit 59bfa43

Browse files
committed
use bat files instead of ps1
1 parent d7f2fe1 commit 59bfa43

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

python/uv/private/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ bzl_library(
9797
filegroup(
9898
name = "lock_template",
9999
srcs = select({
100-
"@platforms//os:windows": ["lock.ps1"],
100+
"@platforms//os:windows": ["lock.bat"],
101101
"//conditions:default": ["lock.sh"],
102102
}),
103103
target_compatible_with = [] if BZLMOD_ENABLED else ["@platforms//:incompatible"],

python/uv/private/lock.bat

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@echo off
2+
set "out={{src_out}}"
3+
4+
if defined BUILD_WORKSPACE_DIRECTORY (
5+
set "out=%BUILD_WORKSPACE_DIRECTORY%\%out%"
6+
) else (
7+
copy /v "%out%" "{{bazel_out}}"
8+
set "out={{bazel_out}}"
9+
)
10+
11+
"{{uv}}" pip compile "{{args}}" --output-file "%out%" %*

python/uv/private/lock.ps1

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)