Skip to content

Commit 2e5a082

Browse files
committed
[python] don't attempt systemdep install if no deps
1 parent 8491c5a commit 2e5a082

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/backends/python/python.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,11 @@ func commonInstallDotReplitNixDeps(ctx context.Context, pkgs []api.PkgName, spec
355355
keys = append(keys, key)
356356
}
357357
slices.Sort(keys)
358+
359+
if len(keys) == 0 {
360+
return
361+
}
362+
358363
value, err := json.Marshal(keys)
359364
if err != nil {
360365
util.DieSubprocess("failed to marshal JSON: %s", err)

0 commit comments

Comments
 (0)