diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2020-09-04 06:28:07 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 06:28:07 -0600 |
commit | 02746c9f20b8f491fd2cd40d8807b24ddc6ce26b (patch) | |
tree | 17e53de9988bb3bd316f10c8c39c55d7ff577532 /numpy/distutils/unixccompiler.py | |
parent | a8c8b63b70ce3303e56e2e89aefa7c9995cc2443 (diff) | |
parent | f8f08a746aebc2eb21c916c12399f79c319d808d (diff) | |
download | numpy-02746c9f20b8f491fd2cd40d8807b24ddc6ce26b.tar.gz |
Merge pull request #17223 from mattip/setuptools1
MAINT: use sysconfig not distutils.sysconfig where possible
Diffstat (limited to 'numpy/distutils/unixccompiler.py')
-rw-r--r-- | numpy/distutils/unixccompiler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/distutils/unixccompiler.py b/numpy/distutils/unixccompiler.py index 5f36c439f..9bb7251d8 100644 --- a/numpy/distutils/unixccompiler.py +++ b/numpy/distutils/unixccompiler.py @@ -26,7 +26,8 @@ def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts self.compiler_so = ccomp # ensure OPT environment variable is read if 'OPT' in os.environ: - from distutils.sysconfig import get_config_vars + # XXX who uses this? + from sysconfig import get_config_vars opt = " ".join(os.environ['OPT'].split()) gcv_opt = " ".join(get_config_vars('OPT')[0].split()) ccomp_s = " ".join(self.compiler_so) |