Commit 28026268 by Victor Manuel Alvarez

Temporarily disable some code while testing appveyor setup

parent 390dde43
...@@ -161,9 +161,9 @@ class BuildExtCommand(build_ext): ...@@ -161,9 +161,9 @@ class BuildExtCommand(build_ext):
if self.plat_name in ('win32','win-amd64'): if self.plat_name in ('win32','win-amd64'):
building_for_windows = True building_for_windows = True
bits = '64' if self.plat_name == 'win-amd64' else '32' #bits = '64' if self.plat_name == 'win-amd64' else '32'
module.define_macros.append(('_CRT_SECURE_NO_WARNINGS','1')) module.define_macros.append(('_CRT_SECURE_NO_WARNINGS','1'))
module.include_dirs.append('yara/windows/include') #module.include_dirs.append('yara/windows/include')
module.libraries.append('advapi32') module.libraries.append('advapi32')
module.libraries.append('user32') module.libraries.append('user32')
else: else:
...@@ -191,12 +191,12 @@ class BuildExtCommand(build_ext): ...@@ -191,12 +191,12 @@ class BuildExtCommand(build_ext):
if self.dynamic_linking: if self.dynamic_linking:
module.libraries.append('yara') module.libraries.append('yara')
else: else:
if building_for_windows: #if building_for_windows:
module.library_dirs.append('yara/windows/lib') # module.library_dirs.append('yara/windows/lib')
if building_for_windows: if building_for_windows:
module.define_macros.append(('HASH_MODULE', '1')) module.define_macros.append(('HASH_MODULE', '1'))
module.libraries.append('libeay%s' % bits) module.libraries.append('libeay32')
elif (has_function('MD5_Init', libraries=['crypto']) and elif (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