Install installs python dependencies to the target directory specified by GOOGLE_PIP_TARGET_DIR. If GOOGLE_PIP_TARGET_DIR is not set, it defaults to "lib".
(ctx *gcp.Context, l *libcnb.Layer, reqs ...string)
| 344 | func PipTargetDir() string { |
| 345 | targetDir := os.Getenv(env.PipTargetDir) |
| 346 | if targetDir == "" { |
| 347 | targetDir = DefaultPipTargetDir |
| 348 | } |
| 349 | return targetDir |
| 350 | } |
| 351 | |
| 352 | // Install installs python dependencies to the target directory specified by GOOGLE_PIP_TARGET_DIR. |
| 353 | // If GOOGLE_PIP_TARGET_DIR is not set, it defaults to "lib". |
| 354 | func (i MakerPipInstaller) Install(ctx *gcp.Context, l *libcnb.Layer, reqs ...string) error { |
| 355 | return installDependenciesToTarget(ctx, l, reqs, "pip", i.TargetPlatform, func(req string) []string { |
| 356 | cmd := basePipInstallArgs(req) |
| 357 | if len(cmd) > 0 { |
nothing calls this directly
no test coverage detected