diff options
author | Benoit Pierre <benoit.pierre@gmail.com> | 2019-08-23 23:18:02 +0200 |
---|---|---|
committer | Benoit Pierre <benoit.pierre@gmail.com> | 2019-10-07 23:32:58 +0200 |
commit | 3d811b93a83d5931b821916c6ca172a69c403a97 (patch) | |
tree | c45ef57a1e9c912eddb5d72cb853ecb1728dd350 /setuptools/wheel.py | |
parent | bf069fe9ddcadaa2c029067601d06a07d037d4f7 (diff) | |
download | external_python_setuptools-3d811b93a83d5931b821916c6ca172a69c403a97.tar.gz external_python_setuptools-3d811b93a83d5931b821916c6ca172a69c403a97.tar.bz2 external_python_setuptools-3d811b93a83d5931b821916c6ca172a69c403a97.zip |
wheel: switch to `packaging.tags` for checking PEP 425 tags
Diffstat (limited to 'setuptools/wheel.py')
-rw-r--r-- | setuptools/wheel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/wheel.py b/setuptools/wheel.py index e11f0a1d..502f8410 100644 --- a/setuptools/wheel.py +++ b/setuptools/wheel.py @@ -11,9 +11,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 @@ -76,7 +76,7 @@ class Wheel: def is_compatible(self): '''Is the wheel is compatible with the current platform?''' - supported_tags = pep425tags.get_supported() + supported_tags = set(map(str, sys_tags())) return next((True for t in self.tags() if t in supported_tags), False) def egg_name(self): |