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

Commit 4bf4a5f

Browse files
authored
Document the process of creating a Python build with homebrew sqlite (#1057)
I ran into this problem when running the import_packages script locally. Documenting the solution for posterity.
1 parent caaafd5 commit 4bf4a5f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/development.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@ To install all dependencies for your local development environment, run
5959
npm install
6060
```
6161

62+
Note that if you are running some processes (specifically the package import
63+
script) on macOS, you will need a Python build linked against sqlite installed
64+
from Homebrew. macOS ships with sqlite, but it lacks some required
65+
functionality. This can be accomplished with:
66+
67+
```
68+
# substitute for your version of choice
69+
PYTHON_VERSION=3.12.9
70+
brew install sqlite
71+
LDFLAGS="-L$(brew --prefix sqlite)/lib" CPPFLAGS="-I$(brew --prefix sqlite)/include" PYTHON_CONFIGURE_OPTS="--enable-loadable-sqlite-extensions" pyenv install -v $PYTHON_VERSION
72+
poetry env use $PYTHON_VERSION
73+
```
74+
6275
### Running the development server
6376

6477
Run the development server using:

0 commit comments

Comments
 (0)