From 16a487af178399df5f4b04bfe15c82249bc622ac Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 3 Mar 2021 06:24:47 -0500 Subject: [PATCH] Fixed installing psycopg2 on Mac. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 005c87ae..b78991f5 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,11 @@ clean-build: ## Clean project build artifacts. install: clean-build ## Install project dependencies. @echo "Installing project in dependencies..." - @pip install -U pip setuptools + @pip install -U pip setuptools poetry +ifeq "$(shell uname)" "Darwin" + @export LDFLAGS="-L/usr/local/opt/openssl/lib" + @export CPPFLAGS="-I/usr/local/opt/openssl/include" +endif @pip install poetry==1.1.4 @poetry install -vvv @poetry update