providers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPathProvider

func NewPathProvider() *pathProvider

newPathProvider returns a new pathProvider.

func Specifier

func Specifier(versionInfo *pep440Version.Version) (*pep440Version.Specifiers, error)

Returns a pep440Version.Specifier.

Types

type Provider

type Provider interface {
	Executables() ([]string, error)
}

A provider is a type of object that provides Python Executables.

type PythonExecutable

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 NewPythonExecutable

func NewPythonExecutable(executable string) (*PythonExecutable, error)

NewPythonExecutable creates a new PythonExecutable from a Python path.

func (*PythonExecutable) String

func (v *PythonExecutable) String() string

Returns a string representation of a PythonExecutable

Jump to

Keyboard shortcuts

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