Skip to content

Commit

Permalink
Prefer packaging instead for pkg_resources for version in wheel.py
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Jan 24, 2023
1 parent cbd0cb7 commit 1cfd18b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setuptools/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@

from distutils.util import get_platform

import pkg_resources
import setuptools
from pkg_resources import parse_version
from setuptools.extern.packaging.version import Version as parse_version
from setuptools.extern.packaging.tags import sys_tags
from setuptools.extern.packaging.utils import canonicalize_name
from setuptools.command.egg_info import write_requirements, _egg_basename
Expand Down Expand Up @@ -122,6 +121,8 @@ def _install_as_egg(self, destination_eggdir, zf):

@staticmethod
def _convert_metadata(zf, destination_eggdir, dist_info, egg_info):
import pkg_resources

def get_metadata(name):
with zf.open(posixpath.join(dist_info, name)) as fp:
value = fp.read().decode('utf-8')
Expand Down

0 comments on commit 1cfd18b

Please sign in to comment.