From 980a17c29d73a161e46f6b3c0faf1a8520427d12 Mon Sep 17 00:00:00 2001 From: David Shea Date: Tue, 15 Dec 2015 14:01:55 -0500 Subject: [PATCH 1/3] 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 471f819f..8b050ae9 100644 --- a/mypy/build.py +++ b/mypy/build.py @@ -245,7 +245,7 @@ def default_data_dir(bin_dir: Optional[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 77c3a3b8..fe7c7e5a 100644 --- a/setup.py +++ b/setup.py @@ -73,8 +73,6 @@ class CustomPythonBuild(build_py): data_files = [] -data_files += find_data_files('typeshed', ['*.py', '*.pyi']) - data_files += find_data_files('xml', ['*.xsd', '*.xslt', '*.css']) classifiers = [ -- 2.13.5