We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f22f72 commit af3f019Copy full SHA for af3f019
easybuild/tools/systemtools.py
@@ -56,7 +56,10 @@
56
# pkg_resources is provided by the setuptools Python package,
57
# which we really want to keep as an *optional* dependency
58
try:
59
- import pkg_resources
+ # catch & ignore deprecation warning when importing pkg_resources produced by setuptools
60
+ with warnings.catch_warnings():
61
+ warnings.simplefilter("ignore", UserWarning)
62
+ import pkg_resources
63
HAVE_PKG_RESOURCES = True
64
except ImportError:
65
HAVE_PKG_RESOURCES = False
0 commit comments