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