Skip to content

Commit

Permalink
fix(frontend-python): Ignore pkg_resources warning
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Nov 27, 2024
1 parent 779c2b6 commit 92499c0
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 92499c0

Please sign in to comment.