Commit 8a99460a by Victor M. Alvarez

Check if self.define is None

parent 9c92f50f
...@@ -180,7 +180,7 @@ class BuildExtCommand(build_ext): ...@@ -180,7 +180,7 @@ class BuildExtCommand(build_ext):
if self.dynamic_linking: if self.dynamic_linking:
module.libraries.append('yara') module.libraries.append('yara')
else: else:
if not ('HASH_MODULE', '1') in self.define: if self.define and not ('HASH_MODULE', '1') in self.define:
if (has_function('MD5_Init', libraries=['crypto']) and if (has_function('MD5_Init', libraries=['crypto']) and
has_function('SHA256_Init', libraries=['crypto'])): has_function('SHA256_Init', libraries=['crypto'])):
module.define_macros.append(('HASH_MODULE', '1')) module.define_macros.append(('HASH_MODULE', '1'))
......
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