summaryrefslogtreecommitdiff
path: root/runtests.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2020-07-13 00:38:49 +0300
committermattip <matti.picus@gmail.com>2020-07-13 00:38:49 +0300
commit68afa1629cc4bcbf83ab17b2572001458ade51e1 (patch)
tree6e1a51a8df088fa5db360c75abc7706964fa5145 /runtests.py
parentfe867a533ebda36942c9d148858658c5b9be7500 (diff)
downloadnumpy-68afa1629cc4bcbf83ab17b2572001458ade51e1.tar.gz
MAINT: one more place where distutils is imported
Diffstat (limited to 'runtests.py')
-rwxr-xr-xruntests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtests.py b/runtests.py
index beaf668d6..17620478d 100755
--- a/runtests.py
+++ b/runtests.py
@@ -341,6 +341,9 @@ def build_project(args):
"""
+ # from setuptools v49.2.0, setuptools warns if distutils is imported first,
+ # so pre-emptively import setuptools
+ import setuptools
import distutils.sysconfig
root_ok = [os.path.exists(os.path.join(ROOT_DIR, fn))