This should be xmlsec rather than "xmlsec", since the macro value is used in contexts where a string literal isn't appropriate. This is masked when building the extension code from setup.py, which correctly sets the macro's value to xmlsec (without the quotes):
Building the extension code under
src
outside ofsetup.py
results in the following compilation error:The source of the problem is the definition of
MODULE_NAME
insrc/common.h
, which is set to"xmlsec"
by the preprocessor if it isn't already defined:https://github.com/xmlsec/python-xmlsec/blob/156394743a0c712e6638fe6e7e300c2f24b4fb12/src/common.h#L15-L17
This should be
xmlsec
rather than"xmlsec"
, since the macro value is used in contexts where a string literal isn't appropriate. This is masked when building the extension code fromsetup.py
, which correctly sets the macro's value toxmlsec
(without the quotes):https://github.com/xmlsec/python-xmlsec/blob/156394743a0c712e6638fe6e7e300c2f24b4fb12/setup.py#L131-L133