From 5557f1f665ee1ace42f16d0c9a64c28f01102115 Mon Sep 17 00:00:00 2001 From: michaelroytman Date: Thu, 6 Jul 2023 15:49:49 -0400 Subject: [PATCH] fix: install pkg-config dependency for mysqlclient>=2.2.0 Repositiories that depend on mysqlclient>=2.2.0 will need to install the package pkg-config in their Dockerfile: PyMySQL/mysqlclient#620. This commit installs the pkg-config package in the Dockerfile. If this is missing, then pip install of mysqlclient fails with an error that includes the following: Exception: Can not find valid pkg-config name. Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually See https://github.com/edx/edx-arch-experiments/issues/349. --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8cc41f2d3..496171f1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,10 @@ FROM ubuntu:focal as app ENV DEBIAN_FRONTEND noninteractive +# Packages installed: + +# pkg-config; mysqlclient>=2.2.0 requires pkg-config (https://github.com/PyMySQL/mysqlclient/issues/620) + RUN apt-get update && apt-get install --no-install-recommends -qy \ language-pack-en \ build-essential \ @@ -9,6 +13,7 @@ RUN apt-get update && apt-get install --no-install-recommends -qy \ python3-virtualenv \ python3.8-distutils \ libmysqlclient-dev \ + pkg-config \ libssl-dev \ # needed by phantomjs libfontconfig \