(self)
return '%s-%s%s-%s-%s-%s.whl' % (self.name, version, buildver,
                                         pyver, abi, arch)
Build and return a filename from the various components.
Build and return a filename from the various components.
Build and return a filename from the various components .
def filename(self):
        """
        Build and return a filename from the various components.
        """
        if self.buildver:
            buildver = '-' + self.buildver
        else:
            buildver = ''
        pyver = '.'.join(self.pyver)
        abi = '.'.join(self.abi)
        arch = '.'.join(self.arch)
        # replace - with _ as a local version separator
        version = self.version.replace('-', '_')
        return '%s-%s%s-%s-%s-%s.whl' % (self.name, version, buildver,
                                         pyver, abi, arch)
def filename ( self ) : if self . buildver : buildver = '-' + self . buildver else : buildver = '' pyver = '.' . join ( self . pyver ) abi = '.' . join ( self . abi ) arch = '.' . join ( self . arch ) # replace - with _ as a local version separator version = self . version . replace ( '-' , '_' ) return '%s-%s%s-%s-%s-%s.whl' % ( self . name , version , buildver , pyver , abi , arch )