supply

package
v1.7.54 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const EnvPipVersion = "BP_PIP_VERSION"

Variables

This section is empty.

Functions

func Run

func Run(s *Supplier) error

func RunPython

func RunPython(s *Supplier) error

Types

type Command

type Command interface {
	Execute(dir string, stdout io.Writer, stderr io.Writer, program string, args ...string) error
	Output(dir string, program string, args ...string) (string, error)
	RunWithOutput(cmd *exec.Cmd) ([]byte, error)
}

type Installer added in v1.6.16

type Installer interface {
	InstallDependency(dep libbuildpack.Dependency, outputDir string) error
	InstallOnlyVersion(depName, installDir string) error
}

type Manifest

type Manifest interface {
	AllDependencyVersions(depName string) []string
	DefaultVersion(depName string) (libbuildpack.Dependency, error)
	IsCached() bool
}

type Reqs added in v1.7.50

type Reqs interface {
	FindAnyPackage(buildDir string, searchedPackages ...string) (bool, error)
	FindStalePackages(oldRequirementsPath, newRequirementsPath string, excludedPackages ...string) ([]string, error)
}

type Stager

type Stager interface {
	BuildDir() string
	CacheDir() string
	DepDir() string
	DepsIdx() string
	LinkDirectoryInDepDir(destDir, destSubDir string) error
	WriteEnvFile(envVar, envVal string) error
	WriteProfileD(scriptName, scriptContents string) error
}

type Supplier

type Supplier struct {
	PythonVersion string
	Manifest      Manifest
	Installer     Installer
	Stager        Stager
	Command       Command
	Log           *libbuildpack.Logger
	Logfile       *os.File
	HasNltkData   bool

	Requirements Reqs
	// contains filtered or unexported fields
}

func (*Supplier) CopyRuntimeTxt added in v1.6.24

func (s *Supplier) CopyRuntimeTxt() error

func (*Supplier) CreateDefaultEnv

func (s *Supplier) CreateDefaultEnv() error

func (*Supplier) DownloadNLTKCorpora

func (s *Supplier) DownloadNLTKCorpora() error

func (*Supplier) HandleFfi

func (s *Supplier) HandleFfi() error

func (*Supplier) HandleMercurial

func (s *Supplier) HandleMercurial() error

func (*Supplier) HandlePipfile

func (s *Supplier) HandlePipfile() error

func (*Supplier) HandlePylibmc

func (s *Supplier) HandlePylibmc() error

func (*Supplier) HandleRequirementstxt

func (s *Supplier) HandleRequirementstxt() error

func (*Supplier) InstallPip

func (s *Supplier) InstallPip() error

func (*Supplier) InstallPipEnv

func (s *Supplier) InstallPipEnv() error

func (*Supplier) InstallPython

func (s *Supplier) InstallPython() error

func (*Supplier) RewriteShebangs

func (s *Supplier) RewriteShebangs() error

func (*Supplier) RunPipUnvendored added in v1.6.29

func (s *Supplier) RunPipUnvendored() error

func (*Supplier) RunPipVendored added in v1.6.29

func (s *Supplier) RunPipVendored() error

func (*Supplier) SetupCacheDir

func (s *Supplier) SetupCacheDir() error

func (*Supplier) UninstallUnusedDependencies

func (s *Supplier) UninstallUnusedDependencies() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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