@@ -5,8 +5,8 @@ import java.nio.file.{FileSystem, FileSystems, Files}
55import scala .collection .compat .immutable .LazyList
66import scala .util .{Properties , Success , Try }
77
8- /** A class for extracting the necessary configuration properties for embedding
9- * a specific Python interpreter into an appication
8+ /** A class for extracting the necessary configuration properties for embedding a specific Python
9+ * interpreter into an appication
1010 */
1111class Python private [python] (
1212 interpreter : Option [String ] = None ,
@@ -16,25 +16,25 @@ class Python private[python] (
1616 isWindows : Option [Boolean ] = None
1717) {
1818
19- /** Provides a list of possible locations for the `libpython`
20- * corresponding to this Python interpreter
19+ /** Provides a list of possible locations for the `libpython` corresponding to this Python
20+ * interpreter
2121 */
2222 lazy val nativeLibraryPaths : Try [Seq [String ]] =
2323 callPython(Python .libPathCmd)
2424 .map(_.split(" ;" ))
2525 .map(_.map(_.trim).distinct.filter(_.nonEmpty).toSeq)
2626
27- /** Name of the `libpython` corresponding to this Python interpreter,
28- * ''e.g.'' `python3.8`, `python3.7m`
27+ /** Name of the `libpython` corresponding to this Python interpreter, ''e.g.'' `python3.8`,
28+ * `python3.7m`
2929 */
3030 lazy val nativeLibrary : Try [String ] = ldversion.map(" python" + _)
3131
3232 /** Absolute path to the Python interpreter executable
3333 */
3434 lazy val executable : Try [String ] = callPython(Python .executableCmd)
3535
36- /** Provides the system properties necessary for setting up
37- * [[ https://scalapy.dev/ ScalaPy ]] with this Python interpreter
36+ /** Provides the system properties necessary for setting up [[ https://scalapy.dev/ ScalaPy ]] with
37+ * this Python interpreter
3838 *
3939 * @example
4040 *
@@ -72,9 +72,8 @@ class Python private[python] (
7272 )
7373 }
7474
75- /** Provides the recommended linker options for embedding this
76- * Python interpreter into another application,
77- * mostly extracted from the outputs of
75+ /** Provides the recommended linker options for embedding this Python interpreter into another
76+ * application, mostly extracted from the outputs of
7877 *
7978 * `pythonX.Y-config --ldflags` for `python` 3.7 and
8079 *
@@ -143,8 +142,9 @@ class Python private[python] (
143142
144143object Python {
145144
146- /** @param interpreter optional path to a Python interpreter executable,
147- * which defaults to `Some("python3")` if not provided
145+ /** @param interpreter
146+ * optional path to a Python interpreter executable, which defaults to `Some("python3")` if not
147+ * provided
148148 *
149149 * @example
150150 *
@@ -158,13 +158,14 @@ object Python {
158158 * println(py.eval("'Hello from Python!'"))
159159 * }}}
160160 *
161- * @return an instance of [[ ai.kien.python.Python ]] which provides
162- * the necessary configuration properties for embedding a specific
163- * Python interpreter
161+ * @return
162+ * an instance of [[ ai.kien.python.Python ]] which provides the necessary configuration
163+ * properties for embedding a specific Python interpreter
164164 */
165165 def apply (interpreter : Option [String ] = None ): Python = new Python (interpreter)
166166
167- /** @param interpreter path to a Python interpreter executable
167+ /** @param interpreter
168+ * path to a Python interpreter executable
168169 *
169170 * @example
170171 *
@@ -178,9 +179,9 @@ object Python {
178179 * println(py.eval("'Hello from Python!'"))
179180 * }}}
180181 *
181- * @return an instance of [[ ai.kien.python.Python ]] which provides
182- * the necessary configuration properties for embedding a specific
183- * Python interpreter
182+ * @return
183+ * an instance of [[ ai.kien.python.Python ]] which provides the necessary configuration
184+ * properties for embedding a specific Python interpreter
184185 */
185186 def apply (interpreter : String ): Python = apply(Some (interpreter))
186187
0 commit comments