summaryrefslogtreecommitdiff
path: root/setuptools/config
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-04-05 10:51:16 +0100
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-04-05 10:51:16 +0100
commitdc6b21b040e31e036c613e8ea88e33a3aee3401d (patch)
treea8d20ee280017cac947c0ed2954d090d29fd92bf /setuptools/config
parentf565df599f5d513bfde355f111bd84e426325f9b (diff)
downloadpython-setuptools-git-dc6b21b040e31e036c613e8ea88e33a3aee3401d.tar.gz
Rename variable
Diffstat (limited to 'setuptools/config')
-rw-r--r--setuptools/config/expand.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/config/expand.py b/setuptools/config/expand.py
index 156d7473..da55d4ee 100644
--- a/setuptools/config/expand.py
+++ b/setuptools/config/expand.py
@@ -312,12 +312,12 @@ def find_packages(
where = kwargs.pop('where', ['.'])
packages: List[str] = []
fill_package_dir = {} if fill_package_dir is None else fill_package_dir
- find = list(unique_everseen(always_iterable(where)))
+ search = list(unique_everseen(always_iterable(where)))
- if len(find) == 1 and all(not _same_path(find[0], x) for x in (".", root_dir)):
- fill_package_dir.setdefault("", find[0])
+ if len(search) == 1 and all(not _same_path(search[0], x) for x in (".", root_dir)):
+ fill_package_dir.setdefault("", search[0])
- for path in find:
+ for path in search:
package_path = _nest_path(root_dir, path)
pkgs = PackageFinder.find(package_path, **kwargs)
packages.extend(pkgs)