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 22, 2024
1 parent 779c2b6 commit aac888c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontends/concrete-python/concrete/__init__.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit aac888c

Please sign in to comment.