Skip to content

Commit ba8eacb

Browse files
authored
fixed build with python3.4 on centos 7
1 parent 15e6ce6 commit ba8eacb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

xmlsec_setupinfo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,13 @@ def load_xmlsec1_config():
171171
config.setdefault('libraries', [])
172172
config.setdefault('include_dirs', [])
173173
config.setdefault('library_dirs', [])
174-
# fix macros
175-
macros = config.setdefault('define_macros', [])
174+
# fix macros, ensure that macros is list
175+
macros = list(config.get('define_macros', []))
176176
for i, v in enumerate(macros):
177177
if v[0] == 'XMLSEC_CRYPTO':
178178
macros[i] = ('XMLSEC_CRYPTO', '"{0}"'.format(v[1]))
179179
break
180+
config['define_macros'] = macros
180181
return config
181182

182183

0 commit comments

Comments
 (0)