diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2020-07-12 16:51:25 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-12 16:51:25 -0600 |
commit | 151c0aae81c16627cad79e9e81424c2221b94970 (patch) | |
tree | 23e003c589a26ea3bff881ec455a0de5e714d0eb | |
parent | e9300832dd6f9fb24d70a32f836f0189cbef9df5 (diff) | |
parent | 68afa1629cc4bcbf83ab17b2572001458ade51e1 (diff) | |
download | numpy-151c0aae81c16627cad79e9e81424c2221b94970.tar.gz |
Merge pull request #16827 from mattip/setuptools-warning2
MAINT: Fix ``runtest.py`` warning.
-rwxr-xr-x | runtests.py | 3 |
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)) |