bindings/python/wscript
changeset 10642 2a4d3f9d09fd
parent 10641 b372889aadef
child 10820 f7e064366926
equal deleted inserted replaced
10641:b372889aadef 10642:2a4d3f9d09fd
    11 
    11 
    12 # feature  = TaskGen.feature
    12 # feature  = TaskGen.feature
    13 # after = TaskGen.after
    13 # after = TaskGen.after
    14 
    14 
    15 ## https://launchpad.net/pybindgen/
    15 ## https://launchpad.net/pybindgen/
    16 REQUIRED_PYBINDGEN_VERSION = (0, 17, 0, 866)
    16 REQUIRED_PYBINDGEN_VERSION = (0, 17, 0, 868)
    17 REQUIRED_PYGCCXML_VERSION = (0, 9, 5)
    17 REQUIRED_PYGCCXML_VERSION = (0, 9, 5)
    18 
    18 
    19 RUN_ME=-3
    19 RUN_ME=-3
    20 
    20 
    21 def add_to_python_path(path):
    21 def add_to_python_path(path):
   163                                      "PyBindGen missing")
   163                                      "PyBindGen missing")
   164         return
   164         return
   165     else:
   165     else:
   166         out = subprocess.Popen([conf.env['PYTHON'][0], "-c",
   166         out = subprocess.Popen([conf.env['PYTHON'][0], "-c",
   167                                 "import pybindgen.version; "
   167                                 "import pybindgen.version; "
   168                                 "print '.'.join([str(x) for x in pybindgen.version.__version__])"],
   168                                 "print('.'.join([str(x) for x in pybindgen.version.__version__]))"],
   169                                 stdout=subprocess.PIPE).communicate()[0]
   169                                 stdout=subprocess.PIPE).communicate()[0]
   170         pybindgen_version_str = out.strip()
   170         pybindgen_version_str = out.strip()
   171         pybindgen_version = tuple([int(x) for x in pybindgen_version_str.split('.')])
   171         pybindgen_version = tuple([int(x) for x in pybindgen_version_str.split('.')])
   172         conf.msg('Checking for pybindgen version', pybindgen_version_str)
   172         conf.msg('Checking for pybindgen version', pybindgen_version_str)
   173         if not (pybindgen_version == REQUIRED_PYBINDGEN_VERSION):
   173         if not (pybindgen_version == REQUIRED_PYBINDGEN_VERSION):