Fixes to support Python >= 3.3 in ns3 python bindings

This commit is contained in:
Gustavo Carneiro
2014-03-02 23:48:27 +00:00
parent 60e2a6c117
commit ff3054b592
8 changed files with 37 additions and 370 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, 866)
REQUIRED_PYBINDGEN_VERSION = (0, 17, 0, 868)
REQUIRED_PYGCCXML_VERSION = (0, 9, 5)
RUN_ME=-3
@@ -165,7 +165,7 @@ def configure(conf):
else:
out = subprocess.Popen([conf.env['PYTHON'][0], "-c",
"import pybindgen.version; "
"print '.'.join([str(x) for x in pybindgen.version.__version__])"],
"print('.'.join([str(x) for x in pybindgen.version.__version__]))"],
stdout=subprocess.PIPE).communicate()[0]
pybindgen_version_str = out.strip()
pybindgen_version = tuple([int(x) for x in pybindgen_version_str.split('.')])