Commit ba966d04 authored by Ian Henriksen's avatar Ian Henriksen

Forward define macros without specified values properly

when they are provided as commented distutils directives.
parent a9d2637a
......@@ -209,7 +209,9 @@ class DistutilsInfo(object):
if type in (list, transitive_list):
value = parse_list(value)
if key == 'define_macros':
value = [tuple(macro.split('=')) for macro in value]
value = [tuple(macro.split('='))
if '=' in macro else (macro, None)
for macro in value]
self.values[key] = value
elif exn is not None:
for key in distutils_settings:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment