Created
December 27, 2016 06:39
-
-
Save vabock/55671f20c8ddfab864d453714f4f9f30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- setup.py.orig 2016-12-27 13:35:46.000000000 +0900 | |
+++ setup.py 2016-12-27 15:19:21.000000000 +0900 | |
@@ -1127,12 +1127,7 @@ | |
# We hunt for #define SQLITE_VERSION "n.n.n" | |
# We need to find >= sqlite version 3.0.8 | |
sqlite_incdir = sqlite_libdir = None | |
- sqlite_inc_paths = [ '/usr/include', | |
- '/usr/include/sqlite', | |
- '/usr/include/sqlite3', | |
- '/usr/local/include', | |
- '/usr/local/include/sqlite', | |
- '/usr/local/include/sqlite3', | |
+ sqlite_inc_paths = [ os.path.expanduser('~/opt/include'), | |
] | |
if cross_compiling: | |
sqlite_inc_paths = [] | |
@@ -1146,7 +1141,7 @@ | |
if host_platform == 'darwin': | |
sysroot = macosx_sdk_root() | |
- for d_ in inc_dirs + sqlite_inc_paths: | |
+ for d_ in sqlite_inc_paths: | |
d = d_ | |
if host_platform == 'darwin' and is_macosx_sdk_path(d): | |
d = os.path.join(sysroot, d[1:]) | |
@@ -1217,7 +1212,7 @@ | |
# before the dynamic library in /usr/lib. | |
sqlite_extra_link_args = ('-Wl,-search_paths_first',) | |
else: | |
- sqlite_extra_link_args = () | |
+ sqlite_extra_link_args = ('-Wl,-rpath,' + sqlite_libdir[0],) | |
include_dirs = ["Modules/_sqlite"] | |
# Only include the directory where sqlite was found if it does |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment