From 7cdf652eaee801639aac39527305e256dcf65515 Mon Sep 17 00:00:00 2001
From: David Shea <dshea@redhat.com>
Date: Tue, 15 Dec 2015 14:01:55 -0500
Subject: [PATCH 1/2] Look for typeshed in /usr/share
Skip installing the bundled typeshed
---
mypy/build.py | 2 +-
setup.py | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/mypy/build.py b/mypy/build.py
index 4d01c5d..9f01b23 100644
--- a/mypy/build.py
+++ b/mypy/build.py
@@ -233,7 +233,7 @@ def default_data_dir(bin_dir: str) -> str:
return os.path.dirname(bin_dir)
elif base == 'bin':
# Installed to somewhere (can be under /usr/local or anywhere).
- return os.path.join(dir, 'lib', 'mypy')
+ return os.path.join(dir, 'share')
elif base == 'python3':
# Assume we installed python3 with brew on os x
return os.path.join(os.path.dirname(dir), 'lib', 'mypy')
diff --git a/setup.py b/setup.py
index 89554a6..da62c0d 100644
--- a/setup.py
+++ b/setup.py
@@ -53,8 +53,6 @@ def find_data_files(base, globs):
data_files = []
-data_files += find_data_files('typeshed', ['*.py', '*.pyi'])
-
data_files += find_data_files('xml', ['*.xsd', '*.xslt', '*.css'])
classifiers = [
--
2.7.1