From 7d746366b17d3a7871f6ea37157c21641d1972a1 Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Sun, 28 May 2017 22:43:41 -0700 Subject: [PATCH 1/3] fix mypy_selftest --- tests/mypy_selftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/mypy_selftest.py b/tests/mypy_selftest.py index 3dc3928e276b..c83d41bb77c1 100755 --- a/tests/mypy_selftest.py +++ b/tests/mypy_selftest.py @@ -11,6 +11,7 @@ if __name__ == '__main__': with tempfile.TemporaryDirectory() as tempdir: dirpath = Path(tempdir) + subprocess.run(['python2.7', '-m', 'pip', 'install', 'typing']) subprocess.run(['git', 'clone', '--depth', '1', 'git://github.com/python/mypy', str(dirpath / 'mypy')], check=True) subprocess.run([sys.executable, '-m', 'pip', 'install', '-U', '-r', From 50218dcd9ae4c0103c7208d23c419613f7d5e3e7 Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Sun, 28 May 2017 22:49:46 -0700 Subject: [PATCH 2/3] fail earlier in mypyselftest if typing isn't available --- tests/mypy_selftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mypy_selftest.py b/tests/mypy_selftest.py index c83d41bb77c1..e3b00a6d84a1 100755 --- a/tests/mypy_selftest.py +++ b/tests/mypy_selftest.py @@ -11,7 +11,7 @@ if __name__ == '__main__': with tempfile.TemporaryDirectory() as tempdir: dirpath = Path(tempdir) - subprocess.run(['python2.7', '-m', 'pip', 'install', 'typing']) + subprocess.run(['python2.7', '-m', 'pip', 'install', 'typing'], check=True) subprocess.run(['git', 'clone', '--depth', '1', 'git://github.com/python/mypy', str(dirpath / 'mypy')], check=True) subprocess.run([sys.executable, '-m', 'pip', 'install', '-U', '-r', From f84dd9278fce6b9b783575ff47538eb74d685b62 Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Sun, 28 May 2017 23:18:45 -0700 Subject: [PATCH 3/3] install per user to avoid permission errors. --- tests/mypy_selftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mypy_selftest.py b/tests/mypy_selftest.py index e3b00a6d84a1..4ee98f72bde3 100755 --- a/tests/mypy_selftest.py +++ b/tests/mypy_selftest.py @@ -11,7 +11,7 @@ if __name__ == '__main__': with tempfile.TemporaryDirectory() as tempdir: dirpath = Path(tempdir) - subprocess.run(['python2.7', '-m', 'pip', 'install', 'typing'], check=True) + subprocess.run(['python2.7', '-m', 'pip', 'install', '--user', 'typing'], check=True) subprocess.run(['git', 'clone', '--depth', '1', 'git://github.com/python/mypy', str(dirpath / 'mypy')], check=True) subprocess.run([sys.executable, '-m', 'pip', 'install', '-U', '-r',