diff --git a/setup.py b/setup.py index 6e6938a..1d3bc03 100644 --- a/setup.py +++ b/setup.py @@ -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