Python bindings: fix generation of callback wrappers with the newest pybindgen

This commit is contained in:
Gustavo Carneiro
2014-09-28 12:39:26 +01:00
parent bfdb6ef10a
commit d880a29e2d
3 changed files with 85 additions and 66 deletions

View File

@@ -13,7 +13,7 @@ from waflib.Errors import WafError
# after = TaskGen.after
## https://launchpad.net/pybindgen/
REQUIRED_PYBINDGEN_VERSION = (0, 17, 0, 876)
REQUIRED_PYBINDGEN_VERSION = (0, 17, 0, 866)
REQUIRED_PYGCCXML_VERSION = (0, 9, 5)
RUN_ME=-3
@@ -265,7 +265,7 @@ int main ()
conf.report_optional_feature("pygccxml", "Python API Scanning Support", False,
"pygccxml too old")
return
## Check gccxml version
try:
@@ -409,7 +409,7 @@ class gen_ns3_compat_pymod_task(Task.Task):
"""Generates a 'ns3.py' compatibility module."""
before = 'cxx'
color = 'BLUE'
def run(self):
assert len(self.outputs) == 1
outfile = file(self.outputs[0].abspath(), "w")