Ejemplo n.º 1
0
                    } if using_pyx else {
                        'std': 'c++11',
                        'define': ['CYTHON_TRACE=1'],
                        'inc_py': True,
                    }
                },
                'flags': flags,
                'options': options,
            },
            pycompilation_link_kwargs={
                'options': ((['WITH_DEBUG'] if WITH_DEBUG else []) +
                            (['openmp'] if WITH_OPENMP else [])),
                'std': 'c++11',
            },
            include_dirs=[
                np.get_include(), fd.get_include(), bdi.get_include(),
                pc.get_include(), _path_under_setup('include')
            ],
            libraries=['sundials_cvodes', LLAPACK, 'sundials_nvecserial', 'm'],
            logger=True,
        )
    ]

modules = [
    pkg_name+'.util',
]

tests = [
    pkg_name+'.tests',
    pkg_name+'.util.tests',
]
Ejemplo n.º 2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import io
import os
from block_diag_ilu import get_include
assert os.listdir(get_include())[0] == 'block_diag_ilu.hpp'
path = os.path.join(get_include(), 'block_diag_ilu.hpp')
assert io.open(path, 'rt',
               encoding='utf-8').readline().startswith('#pragma once')