From 7489ea4047661a7dbd46ff155abe45c548284676 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Mon, 28 Oct 2019 18:47:31 +0100 Subject: msvc: fix Python 2 support --- changelog.d/1891.change.rst | 1 + setuptools/msvc.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/1891.change.rst 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 -- cgit v1.2.3