From d7d28d4068077cbee27c60e65f0c167d7858030e Mon Sep 17 00:00:00 2001 From: ScmTble Date: Sun, 17 Sep 2023 18:53:11 +0800 Subject: [PATCH] fix: pkg-config apt dependency --- internal/python/plan.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/python/plan.go b/internal/python/plan.go index fa38ad27..1eca6949 100644 --- a/internal/python/plan.go +++ b/internal/python/plan.go @@ -470,7 +470,7 @@ func determineInstallCmd(ctx *pythonPlanContext) string { } func determineAptDependencies(ctx *pythonPlanContext) []string { - deps := []string{"build-essential"} + deps := []string{"build-essential", "pkg-config"} // If we need to host static files, we need nginx. staticPath := DetermineStaticInfo(ctx) @@ -494,10 +494,6 @@ func determineAptDependencies(ctx *pythonPlanContext) []string { deps = append(deps, "g++-7") } - if HasDependency(ctx, "flask_sqlalchemy") { - deps = append(deps, "pkg-config") - } - return deps }