Skip to content

Commit

Permalink
Merge pull request #1160 from zama-ai/pkg_resources_ignore_warning
Browse files Browse the repository at this point in the history
fix(frontend-python): Ignore pkg_resources warning
  • Loading branch information
BourgerieQuentin authored Nov 27, 2024
2 parents a115626 + 92499c0 commit cf014b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontends/concrete-python/concrete/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cf014b0

Please sign in to comment.