From c7c6325e0a29ae0f2e7d77999da428969a6206ee Mon Sep 17 00:00:00 2001 From: Chris Arderne Date: Thu, 1 Aug 2024 17:19:14 +0100 Subject: [PATCH] try --- setup.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index ce3c6ac..960c2f3 100644 --- a/setup.py +++ b/setup.py @@ -52,14 +52,14 @@ def quote_argument(arg: str) -> str: class AmalgationLibSQLCipherBuilder(build_ext): def build_extension(self, ext): # noqa # type: ignore - sqlcipher_root = Path("sqlcipher") - sqlcipher_header = sqlcipher_root / "sqlite3.h" - sqlcipher_source = sqlcipher_root / "sqlite3.c" - if not sqlcipher_header.exists() or not sqlcipher_source.exists(): + 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(str(sqlcipher_root)) - ext.sources.append(str(sqlcipher_source)) + ext.include_dirs.append(sqlcipher_root) + ext.sources.append(sqlcipher_source) # build with fulltext search enabled ext.define_macros.append(("SQLITE_ENABLE_FTS3", "1"))