Skip to content

Commit a17c1b7

Browse files
committed
Include extra json file
1 parent 9a93530 commit a17c1b7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def finalize_options(self):
249249
if self.version is None:
250250
self.version = sqliteversion(version)
251251

252-
def extract_entry(self, contents: bytes, name: str, modtime: float, perm: int = 0, replace:str = "sqlite3") -> str:
252+
def extract_entry(self, contents: bytes, name: str, modtime: float, perm: int = 0, replace: str = "sqlite3") -> str:
253253
name = os.path.normpath(name)
254254
if name.startswith(os.pathsep) or ":" in name:
255255
raise Exception(f"Refusing to deal with archive member {name}")
@@ -309,7 +309,6 @@ def run(self):
309309
modtime = datetime.datetime(*zi.date_time).timestamp()
310310
self.extract_entry(zipf.read(zi), zi.filename, modtime, replace="sqlite3/vec1")
311311

312-
313312
## The amalgamation is a .tar.gz
314313
if self.sqlite:
315314
write(" Getting the SQLite amalgamation")
@@ -1050,7 +1049,10 @@ def get_icu_config() -> IcuConfig | None:
10501049
),
10511050
],
10521051
packages=["apsw", "apsw.tests"],
1053-
package_data={"apsw": ["__init__.pyi", "py.typed", "fts_test_strings"], "apsw.sqlite_extra_binaries": ["*"]},
1052+
package_data={
1053+
"apsw": ["__init__.pyi", "py.typed", "fts_test_strings", "sqlite_extra.json"],
1054+
"apsw.sqlite_extra_binaries": ["*"],
1055+
},
10541056
cmdclass={
10551057
"test": run_tests,
10561058
"build_test_extension": build_test_extension,

0 commit comments

Comments
 (0)