aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/monkey.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/monkey.py')
-rw-r--r--setuptools/monkey.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/monkey.py b/setuptools/monkey.py
index 24739d97..5f098986 100644
--- a/setuptools/monkey.py
+++ b/setuptools/monkey.py
@@ -126,7 +126,8 @@ def patch_for_msvc_specialized_compiler():
Patch functions in distutils to use standalone Microsoft Visual C++
compilers.
"""
- from . import msvc
+ # import late to avoid circular imports on Python < 3.5
+ msvc = import_module('setuptools.msvc')
try:
# Distutil file for MSVC++ 9.0 and upper (Python 2.7 to 3.4)