pythonfinder

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 11 Imported by: 0

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

func New

func New() *finder

New returns a new Python version finder.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL