From 1ae415cbee7c35f00a167df84a6ca0759d66a4e5 Mon Sep 17 00:00:00 2001 From: Hirokazu Yamamoto Date: Fri, 3 Oct 2008 17:34:49 +0000 Subject: [PATCH] Issue #1706863: Fixed "'NoneType' object has no attribute 'rfind'" error when sqlite libfile not found. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4b2318658c6..a43b94ea35a 100644 --- a/setup.py +++ b/setup.py @@ -934,7 +934,8 @@ class PyBuildExt(build_ext): ] sqlite_libfile = self.compiler.find_library_file( sqlite_dirs_to_check + lib_dirs, 'sqlite3') - sqlite_libdir = [os.path.abspath(os.path.dirname(sqlite_libfile))] + if sqlite_libfile: + sqlite_libdir = [os.path.abspath(os.path.dirname(sqlite_libfile))] if sqlite_incdir and sqlite_libdir: sqlite_srcs = ['_sqlite/cache.c',