Skip to content

Commit d4e4d51

Browse files
Update python/private/pypi/whl_extract.bzl
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent fd1c011 commit d4e4d51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/private/pypi/whl_extract.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def whl_extract(rctx, *, whl_path, logger):
2323
# Fix permissions on extracted files. Some wheels have files without read permissions set,
2424
# which causes errors when trying to read them later.
2525
os_name = repo_utils.get_platforms_os_name(rctx)
26-
if "windows" not in os_name:
26+
if os_name != "windows":
2727
# On Unix-like systems, recursively add read permissions to all files
2828
# and ensure directories are traversable (need execute permission)
2929
result = rctx.execute(["chmod", "-R", "u+rX,go+rX", str(install_dir_path)])

0 commit comments

Comments
 (0)