8000 fix: try again to fix macos · tjosepo/deno_python@f057fc6 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit f057fc6

Browse files
committed
fix: try again to fix macos
1 parent 81258dd commit f057fc6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/util.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,21 +79,23 @@ async function findlibs(): Promise<string[]> {
7979
libs.concat(await search(location));
8080
}
8181
} else {
82-
const paths = ["/usr/lib", "/lib"];
82+
const paths = [];
8383

8484
if (Deno.build.os === "darwin") {
8585
paths.push(
86-
"/System/Library",
86+
"/System/Library/Python.framework/Versions",
8787
"/opt/homebrew/Frameworks",
8888
"/usr/local/Frameworks",
8989
);
9090

9191
for (const [major, minor] of versions) {
9292
const path = `Python.framework/Versions/${major}.${minor}/Python`;
9393
if (await exists(path)) {
94-
paths.push(path);
94+
libs.push(path);
9595
}
9696
}
97+
} else {
98+
paths.push("/usr/lib", "/lib");
9799
}
98100

99101
for (const path of paths) {

0 commit comments

Comments
 (0)
0