Documentation
¶
Index ¶
- Constants
- func Run(s *Supplier) error
- func RunPython(s *Supplier) error
- type Command
- type Installer
- type Manifest
- type Reqs
- type Stager
- type Supplier
- func (s *Supplier) CopyRuntimeTxt() error
- func (s *Supplier) CreateDefaultEnv() error
- func (s *Supplier) DownloadNLTKCorpora() error
- func (s *Supplier) HandleFfi() error
- func (s *Supplier) HandlePipfile() error
- func (s *Supplier) HandlePylibmc() error
- func (s *Supplier) HandleRequirementstxt() error
- func (s *Supplier) InstallCommonBuildDependencies() error
- func (s *Supplier) InstallPip() error
- func (s *Supplier) InstallPipEnv() error
- func (s *Supplier) InstallPython() error
- func (s *Supplier) RewriteShebangs() error
- func (s *Supplier) RunPipUnvendored() error
- func (s *Supplier) RunPipVendored() error
- func (s *Supplier) SetupCacheDir() error
- func (s *Supplier) UninstallUnusedDependencies() error
Constants ¶
const EnvPipVersion = "BP_PIP_VERSION"
Variables ¶
This section is empty.
Functions ¶
Types ¶
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 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 (*Supplier) CreateDefaultEnv ¶
func (*Supplier) DownloadNLTKCorpora ¶
func (*Supplier) HandlePipfile ¶
func (*Supplier) HandlePylibmc ¶
func (*Supplier) HandleRequirementstxt ¶
func (*Supplier) InstallCommonBuildDependencies ¶ added in v1.8.26
sdist packages have 2 kinds of dependencies: build-time deps and runtime-deps. Before PEP-517, there was no standard to specify a package's build-time deps, but with PEP-517, a package defines its build-time deps in its pyproject.toml. In an online install, pip reads it and downloads build-time deps and builds the sdist. In a vendored (offline) install, this is not possible because "pip download" is not smart enough to download build-time deps during vendoring (pypa/pip issue#8302). Before pip 23.1, when build-time deps were missing, pip fell back to using the legacy 'setup.py install' method. pip 23.1 started enforcing PEP 517. Therefore, for vendored apps with sdists, we install the 2 most common build-time dependencies - wheel and setuptools. These are packaged by the dependency pipeline within the "pip" dependency.