From 51b07c747b8d7eccb37fec860d866284adadb9f8 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Tue, 21 Dec 2021 15:43:39 +0000 Subject: [PATCH] [WIP] Attempt to debug failures with cygwin CI For some reason it is not easy to replicate the cygwin failures pointed out by the CI in the local environment, this commit just adds some extra debugging statements so we can have more information about the problem --- setuptools/config/expand.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setuptools/config/expand.py b/setuptools/config/expand.py index f40c625b2e3..8ea09cc8bd1 100644 --- a/setuptools/config/expand.py +++ b/setuptools/config/expand.py @@ -243,7 +243,11 @@ def find_packages(*, namespaces=False, root_dir=None, **kwargs): where = kwargs.pop('where', ['.']) if isinstance(where, str): where = [where] - target = (_nest_url_style_path(root_dir, path) for path in where) + target = [_nest_url_style_path(root_dir, path) for path in where] + from distutils import log + log.warn(f"find_packages cwd={os.getcwd()} root_dir={root_dir}") + for p in target: + log.warn(f"find_packages where={p} {kwargs}") return list(chain_iter(PackageFinder.find(x, **kwargs) for x in target))