Skip to content

Commit 5f850a2

Browse files
committed
Delay import
1 parent 3d021ce commit 5f850a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setuptools/config/pyprojecttoml.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from typing import TYPE_CHECKING, Callable, Dict, Optional, Mapping, Set, Union
1212

1313
from setuptools.errors import FileError, OptionError
14-
from setuptools.extern.more_itertools import always_iterable
1514

1615
from . import expand as _expand
1716
from ._apply_pyprojecttoml import apply as _apply
@@ -310,6 +309,8 @@ def _ensure_previously_set(self, dist: "Distribution", field: str):
310309
def _expand_directive(
311310
self, specifier: str, directive, package_dir: Mapping[str, str]
312311
):
312+
from setuptools.extern.more_itertools import always_iterable # type: ignore
313+
313314
with _ignore_errors(self.ignore_option_errors):
314315
root_dir = self.root_dir
315316
if "file" in directive:

0 commit comments

Comments
 (0)