File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 14
14
from collections .abc import Iterable
15
15
from email import message_from_file
16
16
17
+ from packaging .utils import canonicalize_name , canonicalize_version
18
+
17
19
from ._log import log
18
20
from .debug import DEBUG
19
21
from .errors import (
25
27
from .fancy_getopt import FancyGetopt , translate_longopt
26
28
from .util import check_environ , rfc822_escape , strtobool
27
29
28
- try :
29
- from packaging .utils import canonicalize_name , canonicalize_version
30
- except ImportError as ex : # pragma: no cover
31
- raise ImportError (
32
- "Distutils should be distributed alongside setuptools and its dependencies"
33
- ) from ex
34
-
35
30
# Regex to define acceptable Distutils command names. This is not *quite*
36
31
# the same as a Python NAME -- I don't allow leading underscores. The fact
37
32
# that they're very similar is no coincidence; the default naming scheme is
You can’t perform that action at this time.
0 commit comments