Files
MINGW-packages/mingw-w64-python2/2701-disable-broken-gdbm-module.patch
Christoph Reiter ee78465f69 python2: Disable broken gdbm module (#3065)
gdbm is broken and as a result breaks anydbm/shelve (anydbm.open fails).
Don't include it so the dumbdbm backend is used instead,
like with the official CPython build.
2017-10-20 09:31:46 +03:00

12 lines
470 B
Diff

--- Python-2.7.14/setup.py.orig 2017-10-17 19:40:39.480898400 +0200
+++ Python-2.7.14/setup.py 2017-10-17 19:46:31.369088600 +0200
@@ -1348,7 +1352,7 @@
if dbm_args:
dbm_order = [arg.split('=')[-1] for arg in dbm_args][-1].split(":")
else:
- dbm_order = "ndbm:gdbm:bdb".split(":")
+ dbm_order = []
dbmext = None
for cand in dbm_order:
if cand == "ndbm":