Skip to content

Commit 5a98b75

Browse files
committed
fixed musl detection
1 parent 6a7e19f commit 5a98b75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def is_musl(self) -> bool:
122122
["/usr/bin/env", "ldd", "--version"], capture_output=True, text=True
123123
)
124124
try:
125-
return "musl libc" in ps.stdout.readlines()[0]
125+
return "musl libc" in ps.stderr.splitlines()[0]
126126
except Exception:
127127
return False
128128

0 commit comments

Comments
 (0)