original_docstring: 
  		Retrieves the list of dependencies for a package
  		
docstring: Retrieves the list of dependencies for a package
docstring_tokens: Retrieves the list of dependencies for a package
code: def extractDependencies(self, package):
  		'''
  		Retrieves the list of dependencies for a package
  		'''
  		
  		# Import the conanfile and instantiate the first recipe class it contains
  		module = Utility.importFile('conanfile', self.getConanfile(package))
  		classes = inspect.getmembers(module, inspect.isclass)
  		recipes = list([c[1] for c in classes if 'ConanFile' in Utility.baseNames(c[1])])
  		recipe = recipes[0](ConanOutput(io.StringIO()), None, user=self.user, channel=self.channel)
  		
  		# Extract the list of dependencies
  		dependencies = list(recipe.requires)
  		if hasattr(recipe, 'requirements'):
  			setattr(recipe, 'requires', lambda d: dependencies.append(d))
  			recipe.requirements()
  		
  		# Filter the dependencies to include only those we are building from our directory tree,
  		# which will all use the same username and channel as the package that requires them
  		dependencies = list([
  			self.stripQualifiers(d)
  			for d in dependencies
  			if d.endswith('@{}/{}'.format(self.user, self.channel)) == True and
  			self.parsePackage(d)[0] in self.availablePackages
  		])
  		return dependencies
code_tokens: def extractDependencies ( self , package ) : module = Utility . importFile ( 'conanfile' , self . getConanfile ( package ) ) classes = inspect . getmembers ( module , inspect . isclass ) recipes = list ( [ c [ 1 ] for c in classes if 'ConanFile' in Utility . baseNames ( c [ 1 ] ) ] ) recipe = recipes [ 0 ] ( ConanOutput ( io . StringIO ( ) ) , None , user = self . user , channel = self . channel ) dependencies = list ( recipe . requires ) if hasattr ( recipe , 'requirements' ) : setattr ( recipe , 'requires' , lambda d : dependencies . append ( d ) ) recipe . requirements ( ) dependencies = list ( [ self . stripQualifiers ( d ) for d in dependencies if d . endswith ( '@{}/{}' . format ( self . user , self . channel ) ) == True and self . parsePackage ( d ) [ 0 ] in self . availablePackages ] ) return dependencies
short_docstring: Retrieves the list of dependencies for a package
short_docstring_tokens: Retrieves the list of dependencies for a package
comment: '''
  		Retrieves the list of dependencies for a package
  		'''$SEP$# Import the conanfile and instantiate the first recipe class it contains$SEP$# Extract the list of dependencies$SEP$# Filter the dependencies to include only those we are building from our directory tree,$SEP$# which will all use the same username and channel as the package that requires them