supply

package
v1.6.15 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

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(string, io.Writer, io.Writer, string, ...string) error
	Output(dir string, program string, args ...string) (string, error)
}

type Manifest

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

type Stager

type Stager interface {
	BuildDir() string
	CacheDir() string
	DepDir() string
	DepsIdx() string
	LinkDirectoryInDepDir(string, string) error
	WriteEnvFile(string, string) error
	WriteProfileD(string, string) error
}

type Supplier

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

func (*Supplier) CopyRequirementsAndRuntimeTxt

func (s *Supplier) CopyRequirementsAndRuntimeTxt() 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) InstallPipPop

func (s *Supplier) InstallPipPop() error

func (*Supplier) InstallPython

func (s *Supplier) InstallPython() error

func (*Supplier) RewriteShebangs

func (s *Supplier) RewriteShebangs() error

func (*Supplier) RunPip

func (s *Supplier) RunPip() 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