From 92499c087dd1a3150785ab97ddfc6849b5c0ff4a 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, 5 insertions(+), 1 deletion(-) diff --git a/frontends/concrete-python/concrete/__init__.py b/frontends/concrete-python/concrete/__init__.py index 8fa4aa38e3..a127bedbd3 100644 --- a/frontends/concrete-python/concrete/__init__.py +++ b/frontends/concrete-python/concrete/__init__.py @@ -2,6 +2,10 @@ 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