From 42f9d02a249103fd024241a17ba5896fd2e18bff Mon Sep 17 00:00:00 2001 From: mattip Date: Wed, 2 Sep 2020 15:44:35 +0300 Subject: MAINT: use sysconfig not distutils.sysconfig where possible --- numpy/distutils/unixccompiler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'numpy/distutils/unixccompiler.py') 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) -- cgit v1.2.1