def _maybe_tag(self, version):
        """
        egg_info may be called more than once for a distribution,
        in which case the version string already contains all tags.
        """
        return (
            version
            if self.vtags and self._already_tagged(version)
            else version + self.vtags
        )

        egg_info may be called more than once for a distribution,
        in which case the version string already contains all tags.
        
product/gradle-plugin/src/main/python/setuptools/command/egg_info.py