Skip to content

Commit 64b81fb

Browse files
committed
[PythonKit] Added support for finding Apple silicon Homebrew Python
1 parent 86ce684 commit 64b81fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PythonKit/PythonLibrary.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ extension PythonLibrary {
8181
#if canImport(Darwin)
8282
private static var libraryNames = ["Python.framework/Versions/:/Python"]
8383
private static var libraryPathExtensions = [""]
84-
private static var librarySearchPaths = ["", "/usr/local/Frameworks/"]
84+
private static var librarySearchPaths = ["", "/opt/homebrew/Frameworks/", "/usr/local/Frameworks/"]
8585
private static var libraryVersionSeparator = "."
8686
#elseif os(Linux)
8787
private static var libraryNames = ["libpython:", "libpython:m"]

0 commit comments

Comments
 (0)