Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,12 @@ def build_extension(self, ext):
def __setattr__(self, k, v):
# Make sure we don't link against the SQLite
# library, no matter what setup.cfg says
if self.amalgamation and k == "libraries":
v = None
if self.amalgamation and k == "libraries" and isinstance(v, list):
for i in ["sqlcipher", "sqlite3"]:
try:
v.remove(i)
except ValueError:
pass
self.__dict__[k] = v


Expand Down