diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2022-11-13 14:37:35 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-11-13 14:37:35 -0500 |
| commit | 9b8a6ef60b2b490bcf60b9dd7f0d43d46f49e489 (patch) | |
| tree | 56b90c20f19ca92c8d9c26e782c5969a7b872c48 /setuptools/_distutils/command/config.py | |
| parent | a0e8e53cecc238e3bce2247308fe7dd94114ef35 (diff) | |
| parent | e0787fad7c03d8defbbaaaf2888130cc2a171537 (diff) | |
| download | python-setuptools-git-9b8a6ef60b2b490bcf60b9dd7f0d43d46f49e489.tar.gz | |
Merge https://github.com/pypa/distutils into distutils-e0787fa
Diffstat (limited to 'setuptools/_distutils/command/config.py')
| -rw-r--r-- | setuptools/_distutils/command/config.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/setuptools/_distutils/command/config.py b/setuptools/_distutils/command/config.py index 4492c896..8bf0e489 100644 --- a/setuptools/_distutils/command/config.py +++ b/setuptools/_distutils/command/config.py @@ -12,10 +12,10 @@ this header file lives". import os import re -from distutils.core import Command -from distutils.errors import DistutilsExecError -from distutils.sysconfig import customize_compiler -from distutils import log +from ..core import Command +from ..errors import DistutilsExecError +from ..sysconfig import customize_compiler +from distutils._log import log LANG_EXT = {"c": ".c", "c++": ".cxx"} @@ -87,7 +87,7 @@ class config(Command): """ # We do this late, and only on-demand, because this is an expensive # import. - from distutils.ccompiler import CCompiler, new_compiler + from ..ccompiler import CCompiler, new_compiler if not isinstance(self.compiler, CCompiler): self.compiler = new_compiler( @@ -174,7 +174,7 @@ class config(Command): preprocessor succeeded, false if there were any errors. ('body' probably isn't of much use, but what the heck.) """ - from distutils.ccompiler import CompileError + from ..ccompiler import CompileError self._check_compiler() ok = True @@ -217,7 +217,7 @@ class config(Command): """Try to compile a source file built from 'body' and 'headers'. Return true on success, false otherwise. """ - from distutils.ccompiler import CompileError + from ..ccompiler import CompileError self._check_compiler() try: @@ -243,7 +243,7 @@ class config(Command): 'headers', to executable form. Return true on success, false otherwise. """ - from distutils.ccompiler import CompileError, LinkError + from ..ccompiler import CompileError, LinkError self._check_compiler() try: @@ -269,7 +269,7 @@ class config(Command): built from 'body' and 'headers'. Return true on success, false otherwise. """ - from distutils.ccompiler import CompileError, LinkError + from ..ccompiler import CompileError, LinkError self._check_compiler() try: |
