Commit 79561470 authored by Stefan Behnel's avatar Stefan Behnel

Fix test compilation failure with Pythran 0.8.7.

parent 2ca61ff0
......@@ -749,7 +749,12 @@ class TestBuilder(object):
pythran_dir = self.pythran_dir
if 'pythran' in tags['tag'] and not pythran_dir and 'cpp' in languages:
import pythran.config
pythran_ext = pythran.config.make_extension()
from pythran import __version__ as pythran_version
pythran_ext = (
pythran.config.make_extension(python=True)
if pythran_version >= '0.9' or pythran_version >= '0.8.7'
else pythran.config.make_extension()
)
pythran_dir = pythran_ext['include_dirs'][0]
preparse_list = tags.get('preparse', ['id'])
......
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