Blame 0002-Look-for-typeshed-in-usr-share.patch
|
|
c440ca5 |
From 80d4b998898c7ab308ae07ff7ee6e0b020f6d172 Mon Sep 17 00:00:00 2001
|
|
|
4be7ba4 |
From: David Shea <dshea@redhat.com>
|
|
|
4be7ba4 |
Date: Tue, 15 Dec 2015 14:01:55 -0500
|
|
|
c440ca5 |
Subject: [PATCH 2/4] Look for typeshed in /usr/share
|
|
|
4be7ba4 |
|
|
|
4be7ba4 |
---
|
|
|
4be7ba4 |
mypy/build.py | 2 +-
|
|
|
4be7ba4 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
4be7ba4 |
|
|
|
4be7ba4 |
diff --git a/mypy/build.py b/mypy/build.py
|
|
|
4be7ba4 |
index 11705df..2c54225 100644
|
|
|
4be7ba4 |
--- a/mypy/build.py
|
|
|
4be7ba4 |
+++ b/mypy/build.py
|
|
|
4be7ba4 |
@@ -221,7 +221,7 @@ def default_data_dir(bin_dir: str) -> str:
|
|
|
4be7ba4 |
return os.path.dirname(bin_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')
|
|
|
4be7ba4 |
--
|
|
|
4be7ba4 |
2.6.4
|
|
|
4be7ba4 |
|