@@ -16,25 +16,37 @@ By default `Python` checks for the `python3` executable (or `python` if `python3
1616import ai .kien .python .Python
1717
1818val python = Python ()
19- // python: Python = ai.kien.python.Python$PythonImpl@263210b
19+ // python: Python = ai.kien.python.Python@5eb35f5d
2020
2121python.nativeLibrary
22- // res0: util.Try[String] = Success(value = "python3.7m ")
22+ // res0: util.Try[String] = Success(value = "python3.9 ")
2323
2424python.nativeLibraryPaths
2525// res1: util.Try[Seq[String]] = Success(
2626// value = ArraySeq(
27- // "/home/kien/.pyenv/versions/3.7.2 /lib/python3.7 /config-3.7m-x86_64-linux-gnu ",
28- // "/home/kien/.pyenv/versions/3.7.2 /lib"
27+ // "/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9 /lib/python3.9 /config-3.9-darwin ",
28+ // "/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9 /lib"
2929// )
3030// )
3131
3232python.scalapyProperties
3333// res2: util.Try[Map[String, String]] = Success(
3434// value = Map(
35- // "jna.library.path" -> "/home/kien/.pyenv/versions/3.7.2/lib/python3.7/config-3.7m-x86_64-linux-gnu:/home/kien/.pyenv/versions/3.7.2/lib",
36- // "scalapy.python.library" -> "python3.7m",
37- // "scalapy.python.programname" -> "/home/kien/.pyenv/versions/3.7.2/bin/python3"
35+ // "jna.library.path" -> "/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin:/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib",
36+ // "scalapy.python.library" -> "python3.9",
37+ // "scalapy.python.programname" -> "/usr/local/opt/python@3.9/bin/python3.9"
38+ // )
39+ // )
40+
41+ python.ldflags
42+ // res3: util.Try[Seq[String]] = Success(
43+ // value = ArraySeq(
44+ // "-L/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin",
45+ // "-L/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib",
46+ // "-lpython3.9",
47+ // "-ldl",
48+ // "-framework",
49+ // "CoreFoundation"
3850// )
3951// )
4052```
@@ -43,22 +55,37 @@ You can point it towards a specific Python installation by passing the path to t
4355
4456``` scala
4557val python = Python (" /usr/bin/python3" )
46- // python: Python = ai.kien.python.Python$PythonImpl@123687f
58+ // python: Python = ai.kien.python.Python@eb0b5d0
4759
4860python.nativeLibrary
49- // res3 : util.Try[String] = Success(value = "python3.8 ")
61+ // res4 : util.Try[String] = Success(value = "python3.9 ")
5062
5163python.nativeLibraryPaths
52- // res4: util.Try[Seq[String]] = Success(
53- // value = ArraySeq("/usr/lib/python3.8/config-3.8-x86_64-linux-gnu", "/usr/lib")
64+ // res5: util.Try[Seq[String]] = Success(
65+ // value = ArraySeq(
66+ // "/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin",
67+ // "/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib"
68+ // )
5469// )
5570
5671python.scalapyProperties
57- // res5 : util.Try[Map[String, String]] = Success(
72+ // res6 : util.Try[Map[String, String]] = Success(
5873// value = Map(
59- // "jna.library.path" -> "/usr/lib/python3.8/config-3.8-x86_64-linux-gnu:/usr/lib",
60- // "scalapy.python.library" -> "python3.8",
61- // "scalapy.python.programname" -> "/usr/bin/python3"
74+ // "jna.library.path" -> "/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin:/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib",
75+ // "scalapy.python.library" -> "python3.9",
76+ // "scalapy.python.programname" -> "/usr/local/opt/python@3.9/bin/python3.9"
77+ // )
78+ // )
79+
80+ python.ldflags
81+ // res7: util.Try[Seq[String]] = Success(
82+ // value = ArraySeq(
83+ // "-L/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin",
84+ // "-L/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib",
85+ // "-lpython3.9",
86+ // "-ldl",
87+ // "-framework",
88+ // "CoreFoundation"
6289// )
6390// )
6491```
0 commit comments