| 59 | return result |
| 60 | |
| 61 | def find(env): |
| 62 | boost_python_lib = _checkKeySubst(env, 'boostPythonLib') |
| 63 | boost_python_lib_dir = _checkKeySubst(env, 'boostPythonLibDir') |
| 64 | boost_include_dir = _checkKeySubst(env, 'boostIncludeDir') |
| 65 | env2 = env.Copy() |
| 66 | conf = env2.Configure(custom_tests = {'CheckBoostPython' : CheckBoostPython}) |
| 67 | result = conf.CheckBoostPython() |
| 68 | conf.Finish() |
| 69 | if not result: |
| 70 | env.Append( |
| 71 | BOOST_PYTHON_TOOL_ERR = """ |
| 72 | BoostPythonTool error: |
| 73 | Boost.Python not functional: I tried and failed to use Boost.Python to |
| 74 | make a small Python module. Are command-line options "boostPythonLib", |
| 75 | "boostPythonLibDir", "boostIncludeDir" set correctly? |
| 76 | """ |
| 77 | ) |
| 78 | |
| 79 | |
| 80 | ShCXXAction = SCons.Action.Action("$BOOST_PYTHON_SHCXXCOM", "$BOOST_PYTHON_SHCXXCOMSTR") |