summaryrefslogtreecommitdiff
path: root/setuptools/wheel.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-01-19 14:33:42 -0500
committerJason R. Coombs <jaraco@jaraco.com>2020-01-19 14:33:42 -0500
commit3463820b30f2b09fee9a5fe42f86f5fe53d7f185 (patch)
tree8573f0834fdbbef8b6bd91abf0bdaec892a6ca1e /setuptools/wheel.py
parentbbf825eee764cae0bc44077ccc957a733d53d095 (diff)
parentc9fb0772fb3c147fce7affe7fcd0aa96435005d2 (diff)
downloadpython-setuptools-git-3463820b30f2b09fee9a5fe42f86f5fe53d7f185.tar.gz
Merge branch 'master' into patch-1
Diffstat (limited to 'setuptools/wheel.py')
-rw-r--r--setuptools/wheel.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/wheel.py b/setuptools/wheel.py
index 22eec05e..ec1106a7 100644
--- a/setuptools/wheel.py
+++ b/setuptools/wheel.py
@@ -12,9 +12,9 @@ import zipfile
import pkg_resources
import setuptools
from pkg_resources import parse_version
+from setuptools.extern.packaging.tags import sys_tags
from setuptools.extern.packaging.utils import canonicalize_name
from setuptools.extern.six import PY3
-from setuptools import pep425tags
from setuptools.command.egg_info import write_requirements
@@ -77,7 +77,8 @@ class Wheel:
def is_compatible(self):
'''Is the wheel is compatible with the current platform?'''
- supported_tags = pep425tags.get_supported()
+ supported_tags = set(
+ (t.interpreter, t.abi, t.platform) for t in sys_tags())
return next((True for t in self.tags() if t in supported_tags), False)
def egg_name(self):