@@ -16,25 +16,37 @@ By default `Python` checks for the `python3` executable (or `python` if `python3
16
16
import ai .kien .python .Python
17
17
18
18
val python = Python ()
19
- // python: Python = ai.kien.python.Python$PythonImpl@263210b
19
+ // python: Python = ai.kien.python.Python@5eb35f5d
20
20
21
21
python.nativeLibrary
22
- // res0: util.Try[String] = Success(value = "python3.7m ")
22
+ // res0: util.Try[String] = Success(value = "python3.9 ")
23
23
24
24
python.nativeLibraryPaths
25
25
// res1: util.Try[Seq[String]] = Success(
26
26
// 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/[email protected] /Frameworks/Python.framework/Versions/3.9 /lib/python3.9 /config-3.9-darwin ",
28
+ // "/usr/local/opt/[email protected] /Frameworks/Python.framework/Versions/3.9 /lib"
29
29
// )
30
30
// )
31
31
32
32
python.scalapyProperties
33
33
// res2: util.Try[Map[String, String]] = Success(
34
34
// 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/[email protected] /Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin:/usr/local/opt/[email protected] /Frameworks/Python.framework/Versions/3.9/lib",
36
+ // "scalapy.python.library" -> "python3.9",
37
+ // "scalapy.python.programname" -> "/usr/local/opt/[email protected] /bin/python3.9"
38
+ // )
39
+ // )
40
+
41
+ python.ldflags
42
+ // res3: util.Try[Seq[String]] = Success(
43
+ // value = ArraySeq(
44
+ // "-L/usr/local/opt/[email protected] /Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin",
45
+ // "-L/usr/local/opt/[email protected] /Frameworks/Python.framework/Versions/3.9/lib",
46
+ // "-lpython3.9",
47
+ // "-ldl",
48
+ // "-framework",
49
+ // "CoreFoundation"
38
50
// )
39
51
// )
40
52
```
@@ -43,22 +55,37 @@ You can point it towards a specific Python installation by passing the path to t
43
55
44
56
``` scala
45
57
val python = Python (" /usr/bin/python3" )
46
- // python: Python = ai.kien.python.Python$PythonImpl@123687f
58
+ // python: Python = ai.kien.python.Python@eb0b5d0
47
59
48
60
python.nativeLibrary
49
- // res3 : util.Try[String] = Success(value = "python3.8 ")
61
+ // res4 : util.Try[String] = Success(value = "python3.9 ")
50
62
51
63
python.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/[email protected] /Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin",
67
+ // "/usr/local/opt/[email protected] /Frameworks/Python.framework/Versions/3.9/lib"
68
+ // )
54
69
// )
55
70
56
71
python.scalapyProperties
57
- // res5 : util.Try[Map[String, String]] = Success(
72
+ // res6 : util.Try[Map[String, String]] = Success(
58
73
// 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/[email protected] /Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin:/usr/local/opt/[email protected] /Frameworks/Python.framework/Versions/3.9/lib",
75
+ // "scalapy.python.library" -> "python3.9",
76
+ // "scalapy.python.programname" -> "/usr/local/opt/[email protected] /bin/python3.9"
77
+ // )
78
+ // )
79
+
80
+ python.ldflags
81
+ // res7: util.Try[Seq[String]] = Success(
82
+ // value = ArraySeq(
83
+ // "-L/usr/local/opt/[email protected] /Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin",
84
+ // "-L/usr/local/opt/[email protected] /Frameworks/Python.framework/Versions/3.9/lib",
85
+ // "-lpython3.9",
86
+ // "-ldl",
87
+ // "-framework",
88
+ // "CoreFoundation"
62
89
// )
63
90
// )
64
91
```
0 commit comments