@run_after('install')
@on_package_attributes(run_tests=True)
def install_test(self):
    with working_dir('spack-test', create=True):
        python = self.spec['python'].command
        py_inc = python('-c', ('import pybind11 as py; ' + self.spec['python'].package.print_string('py.get_include()')), output=str).strip()
        for inc in [py_inc, self.prefix.include]:
            inc_file = join_path(inc, 'pybind11', 'pybind11.h')
            assert os.path.isfile(inc_file)
@run_after('install')
@on_package_attributes(run_tests=True)
def install_test(self):
    with working_dir('spack-test', create=True):
        python = self.spec['python'].command
        py_inc = python('-c', ('import pybind11 as py; ' + self.spec['python'].package.print_string('py.get_include()')), output=str).strip()
        for inc in [py_inc, self.prefix.include]:
            inc_file = join_path(inc, 'pybind11', 'pybind11.h')
            assert os.path.isfile(inc_file)