From 8a7f0e201878777c9513928f2fc232b245efe681 Mon Sep 17 00:00:00 2001 From: David Shea 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 d37dc78..327c441 100644 --- a/mypy/build.py +++ b/mypy/build.py @@ -257,7 +257,7 @@ def default_data_dir(bin_dir: str) -> str: return 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 69cbfb2..570830a 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.8.2