diff options
author | Benoit Pierre <benoit.pierre@gmail.com> | 2019-10-28 18:47:31 +0100 |
---|---|---|
committer | Benoit Pierre <benoit.pierre@gmail.com> | 2019-10-28 18:51:10 +0100 |
commit | 7489ea4047661a7dbd46ff155abe45c548284676 (patch) | |
tree | 03164235e4e53d2a11aa03236c480226f4055c25 | |
parent | 6e8b1da1fb146186c52d8bdec5af969f26532ece (diff) | |
download | external_python_setuptools-7489ea4047661a7dbd46ff155abe45c548284676.tar.gz external_python_setuptools-7489ea4047661a7dbd46ff155abe45c548284676.tar.bz2 external_python_setuptools-7489ea4047661a7dbd46ff155abe45c548284676.zip |
msvc: fix Python 2 support
-rw-r--r-- | changelog.d/1891.change.rst | 1 | ||||
-rw-r--r-- | setuptools/msvc.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/1891.change.rst b/changelog.d/1891.change.rst new file mode 100644 index 00000000..81ccff10 --- /dev/null +++ b/changelog.d/1891.change.rst @@ -0,0 +1 @@ +Fix code for detecting Visual Studio's version on Windows under Python 2. diff --git a/setuptools/msvc.py b/setuptools/msvc.py index ffa7053b..2ffe1c81 100644 --- a/setuptools/msvc.py +++ b/setuptools/msvc.py @@ -20,6 +20,7 @@ This may also support compilers shipped with compatible Visual Studio versions. """ import json +from io import open from os import listdir, pathsep from os.path import join, isfile, isdir, dirname import sys |