diff --git a/frontends/concrete-python/concrete/__init__.py b/frontends/concrete-python/concrete/__init__.py index 8fa4aa38e..04e64d987 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