Commit 1db5c5a6 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix issue with hashing in run_action

parent 3c5c01e8
......@@ -247,13 +247,13 @@ def inline(code, arg_names=None, local_dict=None,
# insert a hash value into the code below, to force recompilation when
# support_code (and module version) changes
support_hash = hashlib.md5(support_code + code + \
" ".join(libraries + library_dirs +
text = support_code + code + " ".join(libraries + library_dirs +
[cxxflags] + \
extra_compile_args +\
extra_objects + \
extra_link_args) + \
headers_hash + __version__).hexdigest()
headers_hash + __version__
support_hash = hashlib.md5(text.encode("ascii")).hexdigest()
code += "\n// support code hash: " + support_hash
inline_code = string.Template(globals()["code_template"]).\
substitute(var_defs=arg_def, var_extract=arg_conv,
......
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