Skip to content

Commit

Permalink
Merge pull request #142 from hoefling/escape-xmlsec-crypto-macro-value
Browse files Browse the repository at this point in the history
escape the XMLSEC_CRYPTO macro value, just as it was done in the original setup
  • Loading branch information
hoefling committed May 21, 2020
2 parents 75c1549 + 50ec2d9 commit 2c216aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Expand Up @@ -75,6 +75,12 @@ def run(self):
ext.define_macros.extend(
[('MODULE_NAME', self.distribution.metadata.name), ('MODULE_VERSION', self.distribution.metadata.version)]
)
# escape the XMLSEC_CRYPTO macro value, see mehcode/python-xmlsec#141
for (key, value) in ext.define_macros:
if key == 'XMLSEC_CRYPTO' and not (value.startswith('"') and value.endswith('"')):
ext.define_macros.remove((key, value))
ext.define_macros.append((key, '"{0}"'.format(value)))
break

if sys.platform == 'win32':
ext.extra_compile_args.append('/Zi')
Expand Down

0 comments on commit 2c216aa

Please sign in to comment.