Skip to content

Commit 16a487a

Browse files
author
Tonye Jack
committed
Fixed installing psycopg2 on Mac.
1 parent e82d7d8 commit 16a487a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ clean-build: ## Clean project build artifacts.
3535

3636
install: clean-build ## Install project dependencies.
3737
@echo "Installing project in dependencies..."
38-
@pip install -U pip setuptools
38+
@pip install -U pip setuptools poetry
39+
ifeq "$(shell uname)" "Darwin"
40+
@export LDFLAGS="-L/usr/local/opt/openssl/lib"
41+
@export CPPFLAGS="-I/usr/local/opt/openssl/include"
42+
endif
3943
@pip install poetry==1.1.4
4044
@poetry install -vvv
4145
@poetry update

0 commit comments

Comments
 (0)