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

fbd8101
From 8a7f0e201878777c9513928f2fc232b245efe681 Mon Sep 17 00:00:00 2001
4be7ba4
From: David Shea <dshea@redhat.com>
4be7ba4
Date: Tue, 15 Dec 2015 14:01:55 -0500
a4aba9f
Subject: [PATCH 1/2] 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
fbd8101
index d37dc78..327c441 100644
4be7ba4
--- a/mypy/build.py
4be7ba4
+++ b/mypy/build.py
fbd8101
@@ -257,7 +257,7 @@ def default_data_dir(bin_dir: 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
fbd8101
index 69cbfb2..570830a 100644
a4aba9f
--- a/setup.py
a4aba9f
+++ b/setup.py
a4aba9f
@@ -53,8 +53,6 @@ def find_data_files(base, globs):
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
-- 
fbd8101
2.8.2
8b13ee8