MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/buildpacks / basePipInstallArgs

Function basePipInstallArgs

pkg/python/python.go:583–595  ·  view source on GitHub ↗
(req string)

Source from the content-addressed store, hash-verified

581}
582
583// MakerSysconfigPatcher implements the sysconfigPatcher interface for the maker tool.
584type MakerSysconfigPatcher struct{}
585
586// PatchSysconfig does nothing, as no patching is required for maker.
587func (p MakerSysconfigPatcher) PatchSysconfig(ctx *gcp.Context, layer *libcnb.Layer) error {
588 return nil
589}
590
591func basePipInstallArgs(req string) []string {
592 return []string{
593 "python3", "-m", "pip", "install",
594 "--requirement", req,
595 "--upgrade",
596 "--upgrade-strategy", "only-if-needed",
597 "--no-warn-script-location", // bin is added at run time by lifecycle.
598 "--no-warn-conflicts", // Needed for python37 and maker mode which allowed users to override dependencies. For newer versions, we do a separate `pip check`.

Callers 2

PIPInstallRequirementsFunction · 0.85
InstallMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected