parameters: (self)
docstring: Detect the scalac program
docstring_summary: Detect the scalac program
docstring_tokens: Detect the scalac program
function: def configure(self):
  	"""
  	Detect the scalac program
  	"""
  	# If SCALA_HOME is set, we prepend it to the path list
  	java_path = self.environ['PATH'].split(os.pathsep)
  	v = self.env
  
  	if 'SCALA_HOME' in self.environ:
  		java_path = [os.path.join(self.environ['SCALA_HOME'], 'bin')] + java_path
  		self.env['SCALA_HOME'] = [self.environ['SCALA_HOME']]
  
  	for x in 'scalac scala'.split():
  		self.find_program(x, var=x.upper(), path_list=java_path)
  
  	if 'CLASSPATH' in self.environ:
  		v['CLASSPATH'] = self.environ['CLASSPATH']
  
  	v.SCALACFLAGS = ['-verbose']
  	if not v['SCALAC']:
  		self.fatal('scalac is required for compiling scala classes')
function_tokens: def configure ( self ) : # If SCALA_HOME is set, we prepend it to the path list java_path = self . environ [ 'PATH' ] . split ( os . pathsep ) v = self . env if 'SCALA_HOME' in self . environ : java_path = [ os . path . join ( self . environ [ 'SCALA_HOME' ] , 'bin' ) ] + java_path self . env [ 'SCALA_HOME' ] = [ self . environ [ 'SCALA_HOME' ] ] for x in 'scalac scala' . split ( ) : self . find_program ( x , var = x . upper ( ) , path_list = java_path ) if 'CLASSPATH' in self . environ : v [ 'CLASSPATH' ] = self . environ [ 'CLASSPATH' ] v . SCALACFLAGS = [ '-verbose' ] if not v [ 'SCALAC' ] : self . fatal ( 'scalac is required for compiling scala classes' )