equal
deleted
inserted
replaced
36 if env['WITH_PYBINDGEN']: |
36 if env['WITH_PYBINDGEN']: |
37 add_to_python_path(env['WITH_PYBINDGEN']) |
37 add_to_python_path(env['WITH_PYBINDGEN']) |
38 |
38 |
39 |
39 |
40 def options(opt): |
40 def options(opt): |
41 opt.tool_options('python') |
41 opt.tool_options('python', ["waf-tools"]) |
42 opt.add_option('--disable-python', |
42 opt.add_option('--disable-python', |
43 help=("Don't build Python bindings."), |
43 help=("Don't build Python bindings."), |
44 action="store_true", default=False, |
44 action="store_true", default=False, |
45 dest='python_disable') |
45 dest='python_disable') |
46 opt.add_option('--apiscan', |
46 opt.add_option('--apiscan', |
89 |
89 |
90 if Options.options.with_python is not None: |
90 if Options.options.with_python is not None: |
91 conf.env.PYTHON = Options.options.with_python |
91 conf.env.PYTHON = Options.options.with_python |
92 |
92 |
93 try: |
93 try: |
94 conf.check_tool('python') |
94 conf.check_tool('python', ["waf-tools"]) |
95 conf.check_python_version((2,3)) |
95 conf.check_python_version((2,3)) |
96 conf.check_python_headers() |
96 conf.check_python_headers() |
97 except Configure.ConfigurationError, ex: |
97 except Configure.ConfigurationError, ex: |
98 conf.report_optional_feature("python", "Python Bindings", False, str(ex)) |
98 conf.report_optional_feature("python", "Python Bindings", False, str(ex)) |
99 return |
99 return |