summaryrefslogtreecommitdiff
path: root/pip/pep425tags.py
diff options
context:
space:
mode:
Diffstat (limited to 'pip/pep425tags.py')
-rw-r--r--pip/pep425tags.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pip/pep425tags.py b/pip/pep425tags.py
index d2436458c..e9374c6e6 100644
--- a/pip/pep425tags.py
+++ b/pip/pep425tags.py
@@ -55,6 +55,13 @@ def get_impl_version_info():
return sys.version_info[0], sys.version_info[1]
+def get_impl_tag():
+ """
+ Returns the Tag for this specific implementation.
+ """
+ return "{0}{1}".format(get_abbr_impl(), get_impl_ver())
+
+
def get_flag(var, fallback, expected=True, warn=True):
"""Use a fallback method for determining SOABI flags if the needed config
var is unset or unavailable."""
@@ -198,3 +205,5 @@ def get_supported(versions=None, noarch=False):
supported_tags = get_supported()
supported_tags_noarch = get_supported(noarch=True)
+
+implementation_tag = get_impl_tag()