8000
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.
2 parents 3b99af4 + 240f389 commit 9efd68cCopy full SHA for 9efd68c
numpy/distutils/tests/test_system_info.py
@@ -3,6 +3,7 @@
3
import pytest
4
from tempfile import mkstemp, mkdtemp
5
from subprocess import Popen, PIPE
6
+import importlib.metadata
7
from distutils.errors import DistutilsError
8
9
from numpy.testing import assert_, assert_equal, assert_raises
@@ -13,6 +14,16 @@
13
14
from numpy.distutils import _shell_utils
15
16
17
+try:
18
+ if importlib.metadata.version('setuptools') >= '60':
19
+ # pkg-resources gives deprecation warnings, and there may be more
20
+ # issues. We only support setuptools <60
21
+ pytest.skip("setuptools is too new", allow_module_level=True)
22
+except importlib.metadata.PackageNotFoundError:
23
+ # we don't require `setuptools`; if it is not found, continue
24
+ pass
25
+
26
27
def get_class(name, notfound_action=1):
28
"""
29
notfound_action:
0 commit comments