]> git.ipfire.org Git - thirdparty/patchwork.git/commit
docker: Install libpq-dev to fix psycopg2-binary build
authorRussell Currey <ruscur@russell.cc>
Wed, 1 May 2019 04:35:53 +0000 (14:35 +1000)
committerDaniel Axtens <dja@axtens.net>
Fri, 3 May 2019 06:10:40 +0000 (16:10 +1000)
commitc56683dd8a738de544eeba137bf4ca12a5523054
tree1510354cdff87baf01a55522057fd726e8a24bbe
parent1b363a7884ef7daadc313063a26ff3d32e38a5ce
docker: Install libpq-dev to fix psycopg2-binary build

psycopg2-binary fails if pg_config isn't installed, which is provided by
libpq-dev.

This seems strange to me since psycopg2-binary suggests that
you use psycopg2-binary instead (of itself) if you don't want to build
psycopg2 so you wouldn't need pg_config, which is very confusing.

It's possible that psycopg2-binary only needs to compile itself on
non-x86 platforms, since I hit this on ppc64le.

Anyway, it works when this is added.

Signed-off-by: Russell Currey <ruscur@russell.cc>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Daniel Axtens <dja@axtens.net>
tools/docker/Dockerfile