Skip to content

Commit 2dd1091

Browse files
committed
Restores _default_compilers to ccompilers.py for backwards compatibility
1 parent 6c0427b commit 2dd1091

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

distutils/ccompiler.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,20 @@
66
get_default_compiler,
77
new_compiler,
88
show_compilers,
9+
_default_compilers,
910
)
1011
from .compilers.C.errors import CompileError, LinkError
1112

1213
__all__ = [
13-
'CompileError',
14-
'LinkError',
15-
'compiler_class',
16-
'gen_lib_options',
17-
'gen_preprocess_options',
18-
'get_default_compiler',
19-
'new_compiler',
20-
'show_compilers',
14+
"CompileError",
15+
"LinkError",
16+
"compiler_class",
17+
"gen_lib_options",
18+
"gen_preprocess_options",
19+
"get_default_compiler",
20+
"new_compiler",
21+
"show_compilers",
22+
_default_compilers,
2123
]
2224

2325

newsfragments/4877.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Restore `distutils.ccompiler._default_compilers` -- by :user:`ManiacDC`

0 commit comments

Comments
 (0)