Skip to content

Commit 468b684

Browse files
committed
Use the binary version of psycopg
1 parent 1768ba5 commit 468b684

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,10 @@ RUN apt-get update \
3030
&& apt-get install --assume-yes --no-install-recommends \
3131
g++ \
3232
gcc \
33-
libc6-dev \
34-
libpq-dev \
35-
zlib1g-dev \
3633
&& python3 -m pip install --no-cache-dir -r ${REQ_FILE} \
3734
&& apt-get purge --assume-yes --auto-remove \
3835
g++ \
3936
gcc \
40-
libc6-dev \
41-
libpq-dev \
42-
zlib1g-dev \
4337
&& apt-get distclean
4438

4539
# copy project

requirements/common.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Jinja2==3.1.6
1414
libsass==0.23.0
1515
Markdown==3.9
1616
Pillow==11.3.0
17-
psycopg[c]==3.2.9
1817
Pygments==2.19.2
1918
pykismet3==0.1.1
2019
requests==2.32.5

requirements/dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
-r common.txt
2+
psycopg[binary]==3.2.10
23
django-debug-toolbar==6.0.0
34
pre-commit~=4.3.0
45
watchdog==6.0.0

requirements/prod.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
-r common.txt
2+
# psycopg docs defines the "local install" method as
3+
# "the preferred way to install Psycopg for a production site."
4+
# https://www.psycopg.org/psycopg3/docs/basic/install.html#local-installation
5+
# Whether or not this applies to the project is debatable, but having it doesn't seem to hurt.
6+
psycopg[c]==3.2.10
27
gunicorn==23.0.0
38
redis==6.4.0
49
sentry-sdk==2.38.0

0 commit comments

Comments
 (0)