Commit 42cc0ef6 authored by Stefan Behnel's avatar Stefan Behnel

Make non-standard Extension attributes "py_limited_api" and "np_pythran"...

Make non-standard Extension attributes "py_limited_api" and "np_pythran" optional for cycache fingerprinting.
parent 0ced0629
...@@ -635,7 +635,11 @@ class DependencyTree(object): ...@@ -635,7 +635,11 @@ class DependencyTree(object):
# include almost everything here as users might extend Extension # include almost everything here as users might extend Extension
# with arbitrary (random) attributes that would lead to cache # with arbitrary (random) attributes that would lead to cache
# misses. # misses.
m.update(str((module.language, module.py_limited_api, module.np_pythran)).encode('UTF-8')) m.update(str((
module.language,
getattr(module, 'py_limited_api', False),
getattr(module, 'np_pythran', False)
)).encode('UTF-8'))
m.update(compilation_options.get_fingerprint().encode('UTF-8')) m.update(compilation_options.get_fingerprint().encode('UTF-8'))
return m.hexdigest() return m.hexdigest()
......
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