@@ -1072,6 +1072,7 @@ class db_found(Exception): pass
1072
1072
else :
1073
1073
missing .append ('_sqlite3' )
1074
1074
1075
+ dbm_setup_debug = False # verbose debug prints from this script?
1075
1076
dbm_order = ['gdbm' ]
1076
1077
# The standard Unix dbm module:
1077
1078
if platform not in ['cygwin' ]:
@@ -1093,7 +1094,7 @@ class db_found(Exception): pass
1093
1094
ndbm_libs = ['ndbm' ]
1094
1095
else :
1095
1096
ndbm_libs = []
1096
- print ("building dbm using ndbm" )
1097
+ if dbm_setup_debug : print ("building dbm using ndbm" )
1097
1098
dbmext = Extension ('_dbm' , ['_dbmmodule.c' ],
1098
1099
define_macros = [
1099
1100
('HAVE_NDBM_H' ,None ),
@@ -1108,7 +1109,7 @@ class db_found(Exception): pass
1108
1109
'gdbm_compat' ):
1109
1110
gdbm_libs .append ('gdbm_compat' )
1110
1111
if find_file ("gdbm/ndbm.h" , inc_dirs , []) is not None :
1111
- print ("building dbm using gdbm" )
1112
+ if dbm_setup_debug : print ("building dbm using gdbm" )
1112
1113
dbmext = Extension (
1113
1114
'_dbm' , ['_dbmmodule.c' ],
1114
1115
define_macros = [
@@ -1117,7 +1118,7 @@ class db_found(Exception): pass
1117
1118
libraries = gdbm_libs )
1118
1119
break
1119
1120
if find_file ("gdbm-ndbm.h" , inc_dirs , []) is not None :
1120
- print ("building dbm using gdbm" )
1121
+ if dbm_setup_debug : print ("building dbm using gdbm" )
1121
1122
dbmext = Extension (
1122
1123
'_dbm' , ['_dbmmodule.c' ],
1123
1124
define_macros = [
@@ -1127,7 +1128,7 @@ class db_found(Exception): pass
1127
1128
break
1128
1129
elif cand == "bdb" :
1129
1130
if db_incs is not None :
1130
- print ("building dbm using bdb" )
1131
+ if dbm_setup_debug : print ("building dbm using bdb" )
1131
1132
dbmext = Extension ('_dbm' , ['_dbmmodule.c' ],
1132
1133
library_dirs = dblib_dir ,
1133
1134
runtime_library_dirs = dblib_dir ,
0 commit comments