Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrVersionNotFound = errors.New("version does not exist")
ErrVersionNotFound is returned when either the version provided by the user is not found, or there is no version of Python installed on the system.
Functions ¶
Types ¶
type Provider ¶
type Provider interface {
// Executables returns a list of absolute paths to Python executables.
Executables() ([]string, error)
}
Provider is an interface that provides Python executables.
Each Provider has contextual information that is used to find Python executables.
type PythonExecutable ¶ added in v0.10.0
type PythonExecutable struct {
// Version is the parsed Python version.
Version *pep440Version.Version
// Path is the absolute path to the Python executable.
Path string
}
PythonExecutable contains information about a Python executable.
func (*PythonExecutable) String ¶ added in v0.10.0
func (v *PythonExecutable) String() string
Click to show internal directories.
Click to hide internal directories.