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

Function appendVendoringFlags

pkg/python/python.go:492–498  ·  view source on GitHub ↗

appendVendoringFlags checks for and appends vendored dependency flags to the command.

(cmd []string)

Source from the content-addressed store, hash-verified

490
491// appendVendoringFlags checks for and appends vendored dependency flags to the command.
492func appendVendoringFlags(cmd []string) []string {
493 if vendorDir, isVendored := os.LookupEnv(VendorPipDepsEnv); isVendored {
494 buildermetrics.GlobalBuilderMetrics().GetCounter(buildermetrics.PipVendorDependenciesCounterID).Increment(1)
495 return append(cmd, "--no-index", "--find-links", vendorDir)
496 }
497 return cmd
498}
499
500func isPackageManagerEmpty() bool {
501 return os.Getenv(env.PythonPackageManager) == ""

Callers 5

PIPInstallRequirementsFunction · 0.85
InstallMethod · 0.85
baseuvPipInstallArgsFunction · 0.85
EnsureUVLockfileFunction · 0.85

Calls 3

GlobalBuilderMetricsFunction · 0.92
IncrementMethod · 0.80
GetCounterMethod · 0.80

Tested by

no test coverage detected