def get_package_fname(self, pattern):
        path = self.wheeldir
        for fname in os.listdir(path):
            match = re.match(pattern, fname)
            if match is not None or pattern == fname:
                return osp.abspath(osp.join(path, fname))
        else:
            raise RuntimeError(
                'Could not find required package matching %s' % pattern)
Get package matching pattern in wheeldir
dataset/ETHPy150Open winpython/winpython/make.py/WinPythonDistribution.get_package_fname