def _add_distribution()

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


    def _add_distribution(self, xar):
        bdist_wheel = self.reinitialize_command("bdist_wheel")
        bdist_wheel.skip_build = self.skip_build
        bdist_wheel.keep_temp = self.keep_temp
        bdist_wheel.bdist_dir = os.path.join(self.bdist_dir, "wheel-bdist")
        bdist_wheel.dist_dir = os.path.join(self.bdist_dir, "wheel-dist")
        bdist_wheel.universal = False
        bdist_wheel.exclude_source_files = self.exclude_source_files
        bdist_wheel.distribution.dist_files = []
        self.run_command("bdist_wheel")
        assert len(bdist_wheel.distribution.dist_files) == 1
        wheel = bdist_wheel.distribution.dist_files[0][2]
        dist = py_util.Wheel(location=wheel).distribution
        xar.add_distribution(dist)
        return dist