summaryrefslogtreecommitdiff
path: root/src/wheel/cli
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2022-11-04 11:05:00 +0200
committerGitHub <noreply@github.com>2022-11-04 11:05:00 +0200
commit9ec201660fa07ee0714edd17c979a7039ea852a4 (patch)
tree3217054035ebccb33cc0990ea12b8c561f50eb51 /src/wheel/cli
parent747e1f6090547abcf65108c5a229cbe21a64a2ae (diff)
downloadwheel-git-9ec201660fa07ee0714edd17c979a7039ea852a4.tar.gz
Removed install dependency on setuptools (#483)
Also re-added the fallback for `license_paths` on setuptools versions older than 57.
Diffstat (limited to 'src/wheel/cli')
-rwxr-xr-xsrc/wheel/cli/convert.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wheel/cli/convert.py b/src/wheel/cli/convert.py
index 0ca66f3..1287059 100755
--- a/src/wheel/cli/convert.py
+++ b/src/wheel/cli/convert.py
@@ -7,12 +7,15 @@ import tempfile
import zipfile
from glob import iglob
-from setuptools.dist import Distribution
-
from ..bdist_wheel import bdist_wheel
from ..wheelfile import WheelFile
from . import WheelError
+try:
+ from setuptools import Distribution
+except ImportError:
+ from distutils.dist import Distribution
+
egg_info_re = re.compile(
r"""
(?P<name>.+?)-(?P<ver>.+?)