bindings/python/wscript
changeset 3473 6bce86ea4778
parent 3468 0bb5275704fc
child 3474 dac9146297c8
equal deleted inserted replaced
3472:190ce8107098 3473:6bce86ea4778
    19     os.environ['PYTHONPATH'] = LOCAL_PYBINDGEN_PATH + os.pathsep + os.environ.get('PYTHONPATH')
    19     os.environ['PYTHONPATH'] = LOCAL_PYBINDGEN_PATH + os.pathsep + os.environ.get('PYTHONPATH')
    20 else:
    20 else:
    21     os.environ['PYTHONPATH'] = LOCAL_PYBINDGEN_PATH
    21     os.environ['PYTHONPATH'] = LOCAL_PYBINDGEN_PATH
    22 
    22 
    23 ## https://launchpad.net/pybindgen/
    23 ## https://launchpad.net/pybindgen/
    24 REQUIRED_PYBINDGEN_VERSION = (0, 8, 0, 511)
    24 REQUIRED_PYBINDGEN_VERSION = (0, 8, 0, 515)
    25 REQUIRED_PYGCCXML_VERSION = (0, 9, 5)
    25 REQUIRED_PYGCCXML_VERSION = (0, 9, 5)
    26 
    26 
    27 
    27 
    28 def set_options(opt):
    28 def set_options(opt):
    29     opt.tool_options('python')
    29     opt.tool_options('python')
    91     conf.check_tool('misc')
    91     conf.check_tool('misc')
    92 
    92 
    93     ## Check for Python
    93     ## Check for Python
    94     try:
    94     try:
    95         conf.check_tool('python')
    95         conf.check_tool('python')
    96         conf.check_python_version((2,4,2))
    96         conf.check_python_version((2,3))
    97         conf.check_python_headers()
    97         conf.check_python_headers()
    98     except Configure.ConfigurationError:
    98     except Configure.ConfigurationError:
    99         return
    99         return
   100 
   100 
   101     ## Check for pybindgen
   101     ## Check for pybindgen