Skip to content

Commit 465f12b

Browse files
committed
devpkg: auto-patch python
Default the `patch_glibc` option to true for Python. It can still be explicitly disabled by setting it to false in devbox.json.
1 parent 4677feb commit 465f12b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/devpkg/package.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ func (p *Package) IsInstallable() bool {
238238
}
239239

240240
func (p *Package) PatchGlibc() bool {
241+
if p.CanonicalName() == "python" {
242+
if p.patchGlibc != nil && !p.patchGlibc() {
243+
return false
244+
}
245+
return true
246+
}
241247
return p.patchGlibc != nil && p.patchGlibc()
242248
}
243249

0 commit comments

Comments
 (0)