parameters: (env)
return_statement: return (bin_path,lib_path,inc_path,libs)
docstring: Determines BOOST {bin_path,lib_path,include_path,libs}
  	
  	returns (bin_path,lib_path,inc_path,libs)
docstring_summary: Determines BOOST {bin_path,lib_path,include_path,libs}
  	
  	returns (bin_path,lib_path,inc_path,libs)
docstring_tokens: Determines BOOST { bin_path lib_path include_path libs } returns ( bin_path lib_path inc_path libs )
function: def getBoost(env):
  	"""Determines BOOST {bin_path,lib_path,include_path,libs}
  	
  	returns (bin_path,lib_path,inc_path,libs)
  	"""
  
  	# determine defaults
  	if os.name == 'posix':
  		bin_path = '/usr/bin'
  		lib_path = '/usr/lib'
  		inc_path = '/usr/include'
  	elif os.name == 'nt':
  		bitness = 32;
  		# If Visual Studio then MSCV builder will have set TARGET_ARCH
  		if 'TARGET_ARCH' in env:
  			if env['TARGET_ARCH'] == 'x86_64':
  				bitness = 64
  		boost_path = '../../tools/boost_1_46_1'
  		inc_path = boost_path + "/"
  		bin_path = boost_path + "/bin"
  		lib_path = boost_path + "/lib/win" + str(bitness)
  	else:
  		raise ValueError, 'Error: unknown OS.  Where is boost installed?'
  
  	# override with environement variables
  	if 'BOOST_BIN_PATH' in os.environ:
  		bin_path = os.path.abspath(os.environ['BOOST_BIN_PATH'])
  	if 'BOOST_LIB_PATH' in os.environ:
  		lib_path = os.path.abspath(os.environ['BOOST_LIB_PATH'])
  	if 'BOOST_INC_PATH' in os.environ:
  		inc_path = os.path.abspath(os.environ['BOOST_INC_PATH'])
  
  	libs = [];
  	if os.name == 'nt':
  		if env['mode'] == 'debug':
  			debug_str = "gd"
  		else:
  			debug_str = ""
  			lib_files = Flatten([Glob(os.path.join(lib_path,
  				'libboost_system-vc100-mt-s' + debug_str + '-*')),
  			Glob(os.path.join(lib_path,
  				'libboost_filesystem-vc100-mt-s' + debug_str + '-*')),
  			Glob(os.path.join(lib_path,
  				'libboost_thread-vc100-mt-s' + debug_str + '-*'))])
  			for f in lib_files:
  				libs.append(os.path.basename(f.abspath))
  			
  	elif os.name == 'posix':
  		ext = ""
  		if os.path.exists(os.path.join(lib_path, 'libboost_system-mt.so')):
  			ext = "-mt"
  			
  		libs = ['-lboost_system' + ext, '-lboost_filesystem' + ext,
  			'-lboost_thread' + ext]
  	else:
  		raise ValueError, 'Error: unknown OS.  What are Boost library names?'
  
  	return (bin_path,lib_path,inc_path,libs)
function_tokens: def getBoost ( env ) : # determine defaults if os . name == 'posix' : bin_path = '/usr/bin' lib_path = '/usr/lib' inc_path = '/usr/include' elif os . name == 'nt' : bitness = 32 # If Visual Studio then MSCV builder will have set TARGET_ARCH if 'TARGET_ARCH' in env : if env [ 'TARGET_ARCH' ] == 'x86_64' : bitness = 64 boost_path = '../../tools/boost_1_46_1' inc_path = boost_path + "/" bin_path = boost_path + "/bin" lib_path = boost_path + "/lib/win" + str ( bitness ) else : raise ValueError , 'Error: unknown OS.  Where is boost installed?' # override with environement variables if 'BOOST_BIN_PATH' in os . environ : bin_path = os . path . abspath ( os . environ [ 'BOOST_BIN_PATH' ] ) if 'BOOST_LIB_PATH' in os . environ : lib_path = os . path . abspath ( os . environ [ 'BOOST_LIB_PATH' ] ) if 'BOOST_INC_PATH' in os . environ : inc_path = os . path . abspath ( os . environ [ 'BOOST_INC_PATH' ] ) libs = [ ] if os . name == 'nt' : if env [ 'mode' ] == 'debug' : debug_str = "gd" else : debug_str = "" lib_files = Flatten ( [ Glob ( os . path . join ( lib_path , 'libboost_system-vc100-mt-s' + debug_str + '-*' ) ) , Glob ( os . path . join ( lib_path , 'libboost_filesystem-vc100-mt-s' + debug_str + '-*' ) ) , Glob ( os . path . join ( lib_path , 'libboost_thread-vc100-mt-s' + debug_str + '-*' ) ) ] ) for f in lib_files : libs . append ( os . path . basename ( f . abspath ) ) elif os . name == 'posix' : ext = "" if os . path . exists ( os . path . join ( lib_path , 'libboost_system-mt.so' ) ) : ext = "-mt" libs = [ '-lboost_system' + ext , '-lboost_filesystem' + ext , '-lboost_thread' + ext ] else : raise ValueError , 'Error: unknown OS.  What are Boost library names?' return ( bin_path , lib_path , inc_path , libs )