Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Document the process of creating a Python build with homebrew sqlite #1057

Merged
merged 1 commit into from
Feb 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,19 @@ To install all dependencies for your local development environment, run
npm install
```

Note that if you are running some processes (specifically the package import
script) on macOS, you will need a Python build linked against sqlite installed
from Homebrew. macOS ships with sqlite, but it lacks some required
functionality. This can be accomplished with:

```
# substitute for your version of choice
PYTHON_VERSION=3.12.9
brew install sqlite
LDFLAGS="-L$(brew --prefix sqlite)/lib" CPPFLAGS="-I$(brew --prefix sqlite)/include" PYTHON_CONFIGURE_OPTS="--enable-loadable-sqlite-extensions" pyenv install -v $PYTHON_VERSION
poetry env use $PYTHON_VERSION
```

### Running the development server

Run the development server using:
Expand Down