Skip to content

Commit b6a539a

Browse files
committed
Restore implicit expectation that importing unixccompiler makes distutils.ccompiler available.
Closes pypa#4871
1 parent b3f17d2 commit b6a539a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

distutils/unixccompiler.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
import importlib
2+
13
from .compilers.C import unix
24

35
UnixCCompiler = unix.Compiler
6+
7+
# ensure import of unixccompiler implies ccompiler imported
8+
# (pypa/setuptools#4871)
9+
importlib.import_module('distutils.ccompiler')

newsfragments/4871.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Restored implicit distutils.ccompiler import for g-ir-scanner.

0 commit comments

Comments
 (0)