def _checkSystemPythonDeps(self, depNames, flags):
        if flags:
            flags = [ (x, deps.FLAG_SENSE_REQUIRED) for x in flags ]

        for dp in depNames:
            depSet = deps.DependencySet()
            depSet.addDep(deps.PythonDependencies, deps.Dependency(dp, flags))
            troves = self.depCache.getProvides([depSet])
            if troves:
                return dp
        return depNames[-1]