Blame 0001-Look-for-typeshed-in-usr-share.patch

a58da49
From 980a17c29d73a161e46f6b3c0faf1a8520427d12 Mon Sep 17 00:00:00 2001
4be7ba4
From: David Shea <dshea@redhat.com>
4be7ba4
Date: Tue, 15 Dec 2015 14:01:55 -0500
a58da49
Subject: [PATCH 1/3] Look for typeshed in /usr/share
4be7ba4
a4aba9f
Skip installing the bundled typeshed
4be7ba4
---
4be7ba4
 mypy/build.py | 2 +-
a4aba9f
 setup.py      | 2 --
a4aba9f
 2 files changed, 1 insertion(+), 3 deletions(-)
4be7ba4
8b13ee8
diff --git a/mypy/build.py b/mypy/build.py
a58da49
index 471f819f..8b050ae9 100644
4be7ba4
--- a/mypy/build.py
4be7ba4
+++ b/mypy/build.py
a58da49
@@ -245,7 +245,7 @@ def default_data_dir(bin_dir: Optional[str]) -> str:
fbd8101
         return dir
4be7ba4
     elif base == 'bin':
4be7ba4
         # Installed to somewhere (can be under /usr/local or anywhere).
4be7ba4
-        return os.path.join(dir, 'lib', 'mypy')
4be7ba4
+        return os.path.join(dir, 'share')
4be7ba4
     elif base == 'python3':
4be7ba4
         # Assume we installed python3 with brew on os x
4be7ba4
         return os.path.join(os.path.dirname(dir), 'lib', 'mypy')
8b13ee8
diff --git a/setup.py b/setup.py
a58da49
index 77c3a3b8..fe7c7e5a 100644
a4aba9f
--- a/setup.py
a4aba9f
+++ b/setup.py
a58da49
@@ -73,8 +73,6 @@ class CustomPythonBuild(build_py):
a4aba9f
 
a4aba9f
 data_files = []
a4aba9f
 
a4aba9f
-data_files += find_data_files('typeshed', ['*.py', '*.pyi'])
a4aba9f
-
a4aba9f
 data_files += find_data_files('xml', ['*.xsd', '*.xslt', '*.css'])
a4aba9f
 
a4aba9f
 classifiers = [
8b13ee8
-- 
a58da49
2.13.5
8b13ee8