From 2e2664db8369223040ca48878517a4ed22529792 Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Mon, 2 Oct 2017 22:05:24 -0700 Subject: [PATCH 1/2] Add default Python 2 install on Windows --- mypy/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy/util.py b/mypy/util.py index 1e8e31898d23..1da8a52d4a2f 100644 --- a/mypy/util.py +++ b/mypy/util.py @@ -10,7 +10,7 @@ ENCODING_RE = re.compile(br'([ \t\v]*#.*(\r\n?|\n))??[ \t\v]*#.*coding[:=][ \t]*([-\w.]+)') -default_python2_interpreter = ['python2', 'python', '/usr/bin/python'] +default_python2_interpreter = ['python2', 'python', '/usr/bin/python', 'C:\\Python27\\python.exe'] def split_module_names(mod_name: str) -> List[str]: From df74cdf79e83b1af8b70435f8dd410c0643b95f9 Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Mon, 2 Oct 2017 22:17:37 -0700 Subject: [PATCH 2/2] install typing on Python2 on AppVeyor --- appveyor.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/appveyor.yml b/appveyor.yml index 0da42233ca8c..ea610a2f5804 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,6 +12,7 @@ install: - "git config core.symlinks true" - "git reset --hard" - "%PYTHON%\\python.exe -m pip install -r test-requirements.txt" + - "C:\\Python27\\python.exe -m pip install typing" - "git submodule update --init typeshed" - "cd typeshed && git config core.symlinks true && git reset --hard && cd .." - "%PYTHON%\\python.exe -m pip install ."