def _deps()

in xar/commands/bdist_xar.py [0:0]


    def _deps(self, dist, extras=()):
        requires = dist.requires(extras=extras)
        try:
            finders.register_finders()
            # Requires setuptools>=34.1 for the bug fix.
            return set(
                self.working_set.resolve(
                    requires, extras=extras, installer=self.installer
                )
            )
        except pkg_resources.DistributionNotFound:
            name = self.distribution.get_name()
            requires_str = "\n\t".join(str(req) for req in requires)
            log.error(
                "%s's requirements are not satisfied:\n\t%s\n"
                "Either pass --download to bdist_xar to download missing "
                "dependencies with pip or try 'pip install /path/to/%s'."
                % (name, requires_str, name)
            )
            raise