Skip to content

Commit 4e6778c

Browse files
emmatypinggvanrossum
authored andcommitted
Add default Python 2 install on Windows to search (#4048)
* Add default Python 2 install on Windows * install typing on Python2 on AppVeyor
1 parent 1aabd22 commit 4e6778c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ install:
1212
- "git config core.symlinks true"
1313
- "git reset --hard"
1414
- "%PYTHON%\\python.exe -m pip install -r test-requirements.txt"
15+
- "C:\\Python27\\python.exe -m pip install typing"
1516
- "git submodule update --init typeshed"
1617
- "cd typeshed && git config core.symlinks true && git reset --hard && cd .."
1718
- "%PYTHON%\\python.exe -m pip install ."

mypy/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
ENCODING_RE = re.compile(br'([ \t\v]*#.*(\r\n?|\n))??[ \t\v]*#.*coding[:=][ \t]*([-\w.]+)')
1212

13-
default_python2_interpreter = ['python2', 'python', '/usr/bin/python']
13+
default_python2_interpreter = ['python2', 'python', '/usr/bin/python', 'C:\\Python27\\python.exe']
1414

1515

1616
def split_module_names(mod_name: str) -> List[str]:

0 commit comments

Comments
 (0)