Skip to content

Commit

Permalink
Delay import
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Jan 20, 2023
1 parent 3d021ce commit 5f850a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setuptools/config/pyprojecttoml.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from typing import TYPE_CHECKING, Callable, Dict, Optional, Mapping, Set, Union

from setuptools.errors import FileError, OptionError
from setuptools.extern.more_itertools import always_iterable

from . import expand as _expand
from ._apply_pyprojecttoml import apply as _apply
Expand Down Expand Up @@ -310,6 +309,8 @@ def _ensure_previously_set(self, dist: "Distribution", field: str):
def _expand_directive(
self, specifier: str, directive, package_dir: Mapping[str, str]
):
from setuptools.extern.more_itertools import always_iterable # type: ignore

with _ignore_errors(self.ignore_option_errors):
root_dir = self.root_dir
if "file" in directive:
Expand Down

0 comments on commit 5f850a2

Please sign in to comment.