aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-09-09 12:45:21 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-09-09 12:45:21 -0400
commitb7b9cb23f217095e79c618c0e3196712d2d9a285 (patch)
treea64f9b05e70088f675fb569c1e1fecc668be6970
parentb6f2fee975c570d2beadb9007e6302411f91ab4b (diff)
downloadexternal_python_setuptools-b7b9cb23f217095e79c618c0e3196712d2d9a285.tar.gz
external_python_setuptools-b7b9cb23f217095e79c618c0e3196712d2d9a285.tar.bz2
external_python_setuptools-b7b9cb23f217095e79c618c0e3196712d2d9a285.zip
Use programmatic import and add comment explaining purpose.
-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)