Skip to content

Conversation

sarahec
Copy link

@sarahec sarahec commented Jul 4, 2025

This reconfigures the python extension to allow building directly using pip:

  1. Adds a sqlite_vec folder to conform with the flat package layout.
  2. Adds a proper __init__.py so the package can be imported.
  3. Adds minimal pyproject.toml and requirements.txt for a basic setuptools build.
  4. Adds a pytest file to quickly validate the extension.
  5. Configured to pull the version number from git. (This can be edited to read the version file if preferred.)

Fixes #230 with the caveat that we'll need to apply sed to __init__.py at build time. I'm open to suggestions on how to do this.

P.S. This enables packaging on nixpkgs: NixOS/nixpkgs#420393

@sarahec sarahec force-pushed the python-buildfiles branch from 6814f7a to 444acdb Compare July 4, 2025 18:35
@sarahec sarahec force-pushed the python-buildfiles branch from 444acdb to 608972c Compare July 7, 2025 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add build files for Python (please)
1 participant