A class for extracting the necessary configuration properties for embedding a specific Python interpreter into an appication
- Companion
- object
Value members
Concrete methods
Provides the system properties necessary for setting up ScalaPy with this Python interpreter
Provides the system properties necessary for setting up ScalaPy with this Python interpreter
- Example
import me.shadaj.scalapy.py Python("/usr/local/bin/python3").scalapyProperties.get.foreach { case (k, v) => System.setProperty(k, v) } println(py.eval("'Hello from Python!'"))
Concrete fields
Absolute path to the Python interpreter executable
Absolute path to the Python interpreter executable
Provides the recommended linker options for embedding this Python interpreter into another application, mostly extracted from the outputs of
Provides the recommended linker options for embedding this Python interpreter into another application, mostly extracted from the outputs of
pythonX.Y-config --ldflags
for python
3.7 and
pythonX.Y-config --ldflags --embed
for python
3.8+
Name of the libpython
corresponding to this Python interpreter,
''e.g.'' python3.8
, python3.7m
Name of the libpython
corresponding to this Python interpreter,
''e.g.'' python3.8
, python3.7m