diff setup.py @ 49493:bdf4da5d04ad

merge from trunk
author Benjamin Peterson <benjamin@python.org>
date Sat, 11 Oct 2008 00:49:57 +0000
parents d2140de76479
children c089eb64ee57
line wrap: on
line diff
--- a/setup.py	Fri Oct 10 23:15:38 2008 +0000
+++ b/setup.py	Sat Oct 11 00:49:57 2008 +0000
@@ -730,7 +730,8 @@
             ]
             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',