mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Depend on psycopg2-binary in the Python wheel, rather than psycopg2. Fixes #4165
This commit is contained in:
parent
a9d964b5ca
commit
ded446fe8a
@ -10,6 +10,7 @@ release of pgAdmin4 4.5
|
||||
Features
|
||||
********
|
||||
|
||||
| `Feature #4165 <https://redmine.postgresql.org/issues/4165>`_ - Depend on psycopg2-binary in the Python wheel, rather than psycopg2.
|
||||
|
||||
Bug fixes
|
||||
*********
|
||||
|
@ -37,6 +37,11 @@ with open(req_file, 'r') as reqf:
|
||||
for index, req in enumerate(required):
|
||||
if ";" in req or req.startswith("#") or req == "":
|
||||
required.remove(req)
|
||||
continue
|
||||
|
||||
# Ensure the Wheel will use psycopg2-binary, not the source distro
|
||||
if 'psycopg2' in req:
|
||||
required[index] = req.replace('psycopg2', 'psycopg2-binary')
|
||||
|
||||
# Get the app version
|
||||
if sys.version_info[:2] >= (3, 3):
|
||||
|
Loading…
Reference in New Issue
Block a user