aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/setuptools
diff options
context:
space:
mode:
authordarkkeks <darkkeks@yandex-team.com>2023-10-04 11:39:00 +0300
committerdarkkeks <darkkeks@yandex-team.com>2023-10-04 12:06:00 +0300
commitc8a29a449c3b2d07eafe26632ff70f9e4c4445f5 (patch)
tree8ce26ac7219cd3b6c3181f5dbc99bf22ca0c2f77 /contrib/python/setuptools
parentecc700f77e7e2e06c898b159d5659baf30d94596 (diff)
downloadydb-c8a29a449c3b2d07eafe26632ff70f9e4c4445f5.tar.gz
Не работает resource_listdir вместе с Y_PYTHON_SOURCE_ROOT
Diffstat (limited to 'contrib/python/setuptools')
-rw-r--r--contrib/python/setuptools/py3/pkg_resources/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/python/setuptools/py3/pkg_resources/__init__.py b/contrib/python/setuptools/py3/pkg_resources/__init__.py
index c5e4fe5148..5887a520cb 100644
--- a/contrib/python/setuptools/py3/pkg_resources/__init__.py
+++ b/contrib/python/setuptools/py3/pkg_resources/__init__.py
@@ -3318,8 +3318,10 @@ class UnionProvider(EmptyProvider):
def _itdir(self, path):
for p, pp in path:
+ if not p._isdir(pp):
+ continue
for np in p._listdir(pp):
- yield p, p._fn(pp, np)
+ yield np
def _listdir(self, path):
return list(self._itdir(path))