Skip to content

Commit 205a3ec

Browse files
committed
* fixed import order
* added documentation to imports as to why they are there, and when they can be removed.
1 parent 742f566 commit 205a3ec

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

distutils/ccompiler.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
from .compilers.C import base
22
from .compilers.C.base import (
3+
# `_default_compilers` is needed by numpy.distutils, which is supported until
4+
# Python 3.11 is deprecated. This import & export can be removed when
5+
# Python 3.11 is no longer supported by distutils.
6+
_default_compilers,
37
compiler_class,
48
gen_lib_options,
59
gen_preprocess_options,
610
get_default_compiler,
711
new_compiler,
812
show_compilers,
9-
_default_compilers,
1013
)
1114
from .compilers.C.errors import CompileError, LinkError
1215

1316
__all__ = [
1417
"CompileError",
1518
"LinkError",
19+
"_default_compilers",
1620
"compiler_class",
1721
"gen_lib_options",
1822
"gen_preprocess_options",
1923
"get_default_compiler",
2024
"new_compiler",
2125
"show_compilers",
22-
"_default_compilers",
2326
]
2427

2528

0 commit comments

Comments
 (0)