def _resolve_requirements_chain(requirements):
 chain = []
 if isinstance(requirements, string_types):
  requirements = [requirements]
 for req_file in requirements:
  chain.append(req_file)
  chain.extend(_resolve_requirements_chain(_find_req(req_file)))
 return chain

def _resolve_requirements_chain ( requirements ) : chain = [ ] if isinstance ( requirements , string_types ) : requirements = [ requirements ] for req_file in requirements : chain . append ( req_file ) chain . extend ( _resolve_requirements_chain ( _find_req ( req_file ) ) ) return chain
return an array of requirements file paths that can be used to complete the no_chown==false && user != none conundrum .