Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
1db5c5a6
Commit
1db5c5a6
authored
Dec 26, 2012
by
Tiago Peixoto
Browse files
Fix issue with hashing in run_action
parent
3c5c01e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/run_action/inline.py
View file @
1db5c5a6
...
...
@@ -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
+
[
cxxfla
gs
]
+
\
extra_
compile_arg
s
+
\
extra_
objects
+
\
extra_link_args
)
+
\
headers_hash
+
__version__
).
hexdigest
()
text
=
support_code
+
code
+
" "
.
join
(
libraries
+
library_dirs
+
[
cxxflags
]
+
\
extra_compile_ar
gs
+
\
extra_
object
s
+
\
extra_
link_args
)
+
\
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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment