diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-09 12:45:21 -0400 | 
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-09 12:45:21 -0400 | 
| commit | b7b9cb23f217095e79c618c0e3196712d2d9a285 (patch) | |
| tree | a64f9b05e70088f675fb569c1e1fecc668be6970 | |
| parent | b6f2fee975c570d2beadb9007e6302411f91ab4b (diff) | |
| download | python-setuptools-git-b7b9cb23f217095e79c618c0e3196712d2d9a285.tar.gz | |
Use programmatic import and add comment explaining purpose.
| -rw-r--r-- | setuptools/monkey.py | 3 | 
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) | 
