Skip to content

Commit

Permalink
move sqlcipher
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne committed Aug 1, 2024
1 parent c7c6325 commit b4477e2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
graft sqlcipher
graft src

global-exclude *.pyc
9 changes: 0 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,6 @@ def quote_argument(arg: str) -> str:

class AmalgationLibSQLCipherBuilder(build_ext):
def build_extension(self, ext): # noqa # type: ignore
sqlcipher_root = "sqlcipher"
sqlcipher_header = os.path.join(sqlcipher_root, "sqlite3.h")
sqlcipher_source = os.path.join(sqlcipher_root, "sqlite3.c")
if not os.path.exists(sqlcipher_header) or not os.path.exists(sqlcipher_source):
raise RuntimeError("SQLCipher amalgamation not found")

ext.include_dirs.append(sqlcipher_root)
ext.sources.append(sqlcipher_source)

# build with fulltext search enabled
ext.define_macros.append(("SQLITE_ENABLE_FTS3", "1"))
ext.define_macros.append(("SQLITE_ENABLE_RTREE", "1"))
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b4477e2

Please sign in to comment.