diff options
author | mattip <matti.picus@gmail.com> | 2020-09-02 15:44:35 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2020-09-02 15:44:35 +0300 |
commit | 42f9d02a249103fd024241a17ba5896fd2e18bff (patch) | |
tree | 666684f6cf30d81ad6e3ec53a09874416dc60cea /numpy/distutils/unixccompiler.py | |
parent | db866874ccb8c8c814df57eb1edca4fd05eb1753 (diff) | |
download | numpy-42f9d02a249103fd024241a17ba5896fd2e18bff.tar.gz |
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) |