Commit 4c53fdb
Fix musl detection on Alpine for mssql_py_core install
ldd --version exits with code 1 on musl/Alpine. Combined with
set -euo pipefail, the piped grep check always took the else branch,
misidentifying Alpine as glibc (manylinux). pip then rejected the
manylinux wheel since it cannot run on musl.
Fix: capture ldd output into a variable with || true before grepping.
Add fallback detection via /etc/alpine-release and /lib/ld-musl-*.
Skip gracefully (exit 0) when no musllinux wheel is available yet.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent cbef84a commit 4c53fdb
1 file changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
53 | 66 | | |
54 | 67 | | |
55 | 68 | | |
| |||
132 | 145 | | |
133 | 146 | | |
134 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
135 | 155 | | |
136 | 156 | | |
137 | 157 | | |
| |||
0 commit comments