Skip to content

Commit 6c0427b

Browse files
authored
Merge pull request pypa/distutils#337 from Avasam/add-back-compiler.compiler_class
Restore public symbols missing after compilers move
2 parents b6a539a + 408274b commit 6c0427b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

distutils/_msvccompiler.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
from .compilers.C import msvc
22

3+
__all__ = ["MSVCCompiler"]
4+
35
MSVCCompiler = msvc.Compiler

distutils/ccompiler.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
from .compilers.C import base
22
from .compilers.C.base import (
3-
CompileError,
4-
LinkError,
3+
compiler_class,
54
gen_lib_options,
65
gen_preprocess_options,
76
get_default_compiler,
87
new_compiler,
98
show_compilers,
109
)
10+
from .compilers.C.errors import CompileError, LinkError
1111

1212
__all__ = [
1313
'CompileError',
1414
'LinkError',
15+
'compiler_class',
1516
'gen_lib_options',
1617
'gen_preprocess_options',
1718
'get_default_compiler',

newsfragments/4876.bugfix.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Restore `distutils.ccompiler.compiler_class` -- by :user:`Avasam`

0 commit comments

Comments
 (0)