]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #1706863: Fixed "'NoneType' object has no attribute 'rfind'" error when sqlite...
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Fri, 3 Oct 2008 17:34:49 +0000 (17:34 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Fri, 3 Oct 2008 17:34:49 +0000 (17:34 +0000)
setup.py

index 4b2318658c6c01fa76905d3e88d1360429cd0e78..a43b94ea35a97acfcb07d5ee9915bfd37d2e5f7b 100644 (file)
--- 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',