summaryrefslogtreecommitdiff
path: root/src/wheel/cli
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2021-12-24 21:56:43 +0200
committerAlex Grönholm <alex.gronholm@nextday.fi>2021-12-24 21:56:43 +0200
commit55dfd587ed6182b8af224906a467dbd3f7ae1433 (patch)
tree9f34f543af49e3843019804636524b77fb1d3870 /src/wheel/cli
parentfdb6eca68c3c1e7258f9be5236f511827289947f (diff)
downloadwheel-git-55dfd587ed6182b8af224906a467dbd3f7ae1433.tar.gz
Replaced distutils with setuptools
Distutils has been deprecated and will be removed in Python 3.12.
Diffstat (limited to 'src/wheel/cli')
-rwxr-xr-xsrc/wheel/cli/convert.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/wheel/cli/convert.py b/src/wheel/cli/convert.py
index b2f685f..a4bec18 100755
--- a/src/wheel/cli/convert.py
+++ b/src/wheel/cli/convert.py
@@ -3,9 +3,10 @@ import re
import shutil
import tempfile
import zipfile
-from distutils import dist
from glob import iglob
+from setuptools.dist import Distribution
+
from ..bdist_wheel import bdist_wheel
from ..wheelfile import WheelFile
from . import WheelError, require_pkgresources
@@ -68,9 +69,9 @@ def egg2wheel(egg_path, dest_dir):
root_is_purelib = egg_info["arch"] is None
if root_is_purelib:
- bw = bdist_wheel(dist.Distribution())
+ bw = bdist_wheel(Distribution())
else:
- bw = _bdist_wheel_tag(dist.Distribution())
+ bw = _bdist_wheel_tag(Distribution())
bw.root_is_pure = root_is_purelib
bw.python_tag = pyver
@@ -227,9 +228,9 @@ def wininst2wheel(path, dest_dir):
pyver = pyver.replace("py", "cp")
wheel_name = "-".join((dist_info, pyver, abi, arch))
if root_is_purelib:
- bw = bdist_wheel(dist.Distribution())
+ bw = bdist_wheel(Distribution())
else:
- bw = _bdist_wheel_tag(dist.Distribution())
+ bw = _bdist_wheel_tag(Distribution())
bw.root_is_pure = root_is_purelib
bw.python_tag = pyver