From aac888c019cf03a1f48ce3906c5395f98cfd8a7a Mon Sep 17 00:00:00 2001 From: Quentin Bourgerie Date: Fri, 22 Nov 2024 09:29:38 +0100 Subject: [PATCH] fix(frontend-python): Ignore pkg_resources warning --- frontends/concrete-python/concrete/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontends/concrete-python/concrete/__init__.py b/frontends/concrete-python/concrete/__init__.py index 8fa4aa38e3..04e64d9877 100644 --- a/frontends/concrete-python/concrete/__init__.py +++ b/frontends/concrete-python/concrete/__init__.py @@ -1,7 +1,9 @@ """ Setup concrete namespace. """ - +import warnings # Do not modify, this is to have a compatible namespace package # https://packaging.python.org/en/latest/guides/packaging-namespace-packages/#pkg-resources-style-namespace-packages -__import__("pkg_resources").declare_namespace(__name__) # pragma: no cover +with warnings.catch_warnings(): + warnings.simplefilter("ignore") + __import__("pkg_resources").declare_namespace(__name__) # pragma: no cover