Change psycopg-binary in setup_pip.py file.

This commit is contained in:
Khushboo Vashi
2023-03-14 15:59:49 +05:30
committed by Akshay Joshi
parent 59edf50c02
commit d053742ca4

View File

@@ -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)