Skip to content

Commit aff1e8f

Browse files
committed
Update docs
1 parent 832fa27 commit aff1e8f

File tree

1 file changed

+42
-15
lines changed

1 file changed

+42
-15
lines changed

README.md

Lines changed: 42 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,37 @@ By default `Python` checks for the `python3` executable (or `python` if `python3
1616
import ai.kien.python.Python
1717

1818
val python = Python()
19-
// python: Python = ai.kien.python.Python$PythonImpl@263210b
19+
// python: Python = ai.kien.python.Python@5eb35f5d
2020

2121
python.nativeLibrary
22-
// res0: util.Try[String] = Success(value = "python3.7m")
22+
// res0: util.Try[String] = Success(value = "python3.9")
2323

2424
python.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/[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"
2929
// )
3030
// )
3131

3232
python.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/[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"
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
4557
val python = Python("/usr/bin/python3")
46-
// python: Python = ai.kien.python.Python$PythonImpl@123687f
58+
// python: Python = ai.kien.python.Python@eb0b5d0
4759

4860
python.nativeLibrary
49-
// res3: util.Try[String] = Success(value = "python3.8")
61+
// res4: util.Try[String] = Success(value = "python3.9")
5062

5163
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+
// )
5469
// )
5570

5671
python.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/[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"
6289
// )
6390
// )
6491
```

0 commit comments

Comments
 (0)