mirror of
https://github.com/python/cpython.git
synced 2025-09-14 12:46:49 +00:00
Issue #1706863: Fixed "'NoneType' object has no attribute 'rfind'" error when sqlite libfile not found.
This commit is contained in:
parent
081bb457ab
commit
1ae415cbee
1 changed files with 2 additions and 1 deletions
1
setup.py
1
setup.py
|
@ -934,6 +934,7 @@ class PyBuildExt(build_ext):
|
|||
]
|
||||
sqlite_libfile = self.compiler.find_library_file(
|
||||
sqlite_dirs_to_check + lib_dirs, 'sqlite3')
|
||||
if sqlite_libfile:
|
||||
sqlite_libdir = [os.path.abspath(os.path.dirname(sqlite_libfile))]
|
||||
|
||||
if sqlite_incdir and sqlite_libdir:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue