From d053742ca4b59b5dd75786ad3a0980fa5cb18c53 Mon Sep 17 00:00:00 2001 From: Khushboo Vashi Date: Tue, 14 Mar 2023 15:59:49 +0530 Subject: [PATCH] Change psycopg-binary in setup_pip.py file. --- pkg/pip/setup_pip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/pip/setup_pip.py b/pkg/pip/setup_pip.py index 8791b9847..79ae13446 100644 --- a/pkg/pip/setup_pip.py +++ b/pkg/pip/setup_pip.py @@ -39,8 +39,8 @@ kerberos_extras = [] # Ensure the Wheel will use psycopg-binary, not the source distro, and stick # gssapi in it's own list for index, req in enumerate(all_requires): - if 'psycopg' in req: - req = req.replace('psycopg', 'psycopg-binary') + if 'psycopg[c]' in req: + req = req.replace('psycopg[c]', 'psycopg-binary') if 'gssapi' in req: kerberos_extras.append(req)