def createPythonObjectBuilder(env):
 try:
  pyobj = env['BUILDERS']['PythonObject']
 except KeyError:
  pyobj = SCons.Builder.Builder(action={}, emitter={}, prefix='$PYEXTOBJPREFIX', suffix='$PYEXTOBJSUFFIX', src_builder=['CFile', 'CXXFile'], source_scanner=SourceFileScanner, single_source=1)
  env['BUILDERS']['PythonObject'] = pyobj
 return pyobj

def createPythonObjectBuilder ( env ) : try : pyobj = env [ 'BUILDERS' ] [ 'PythonObject' ] except KeyError : pyobj = SCons . Builder . Builder ( action = { } , emitter = { } , prefix = '$PYEXTOBJPREFIX' , suffix = '$PYEXTOBJSUFFIX' , src_builder = [ 'CFile' , 'CXXFile' ] , source_scanner = SourceFileScanner , single_source = 1 ) env [ 'BUILDERS' ] [ 'PythonObject' ] = pyobj return pyobj
this is a utility function that creates the pythonobject builder in an environment if it is not there already .