File tree Expand file tree Collapse file tree 4 files changed +30
-0
lines changed
Expand file tree Collapse file tree 4 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ [build-system ]
2+ requires = [" setuptools" , " setuptools_scm" ]
3+ build-backend = " setuptools.build_meta"
4+
5+ [project ]
6+ name = " sqlite-vec"
7+ description = " A vector search SQLite extension."
8+ dynamic = [" version" ]
9+ readme = " README.md"
10+ requires-python = " >=3.12"
11+ dependencies = [
12+ " numpy"
13+ ]
Original file line number Diff line number Diff line change 1+ numpy >= 2.3.0
Original file line number Diff line number Diff line change 1+ from os import path
2+ import sqlite3
3+
4+ def loadable_path ():
5+ """ Returns the full path to the sqlite-vec loadable SQLite extension bundled with this package """
6+
7+ # loadable_path = path.join(path.dirname(__file__), "vec0")
8+ vec0_path = "@libpath@" + "vec0" # This is replaced by the build system with the actual path to the vec0 library
9+ return path .normpath (vec0_path )
10+
11+ def load (conn : sqlite3 .Connection ) -> None :
12+ """ Load the sqlite-vec SQLite extension into the given database connection. """
13+
14+ conn .load_extension (loadable_path ())
15+
16+ from .extra_init import *
File renamed without changes.
You can’t perform that action at this time.
0 commit comments