Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commit 71852b1158f5e833db49bbbe19bd34dfb4fe0a61 broke tutorial https://pybindgen.readthedocs.io/en/latest/tutorial/#header-file-scanning #49

Open
pbower opened this issue Sep 28, 2021 · 0 comments

Comments

@pbower
Copy link

pbower commented Sep 28, 2021

Hi ,

This is a courtesy to let you know that commit 71852b1 with the gccxml replacement appears to have broken the PyBindGen tutorial listed at https://pybindgen.readthedocs.io/en/latest/tutorial/#header-file-scanning

with its accompanying code below:

#! /usr/bin/env python

import sys

import pybindgen
from pybindgen import FileCodeSink
from pybindgen.gccxmlparser import ModuleParser

def my_module_gen():
module_parser = ModuleParser('a1', '::')
module = module_parser.parse([sys.argv[1]])
module.add_include('"a.h"')

pybindgen.write_preamble(FileCodeSink(sys.stdout))
module.generate(FileCodeSink(sys.stdout))

if name == 'main':
my_module_gen()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant