Does psycopg2-binary provide the psycopg2 package? - Mailing list psycopg

From Kerrick Staley
Subject Does psycopg2-binary provide the psycopg2 package?
Date
Msg-id CACfSeTE=r0BkTB8S_1BDw8=5tharqoZAaeRLUNkYPsSu8jbw+A@mail.gmail.com
Whole thread Raw
Responses Re: Does psycopg2-binary provide the psycopg2 package?  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg
If I install psycopg2-binary, and then I try to install a package that depends on psycopg2, will pip "know" that psycopg2-binary satisfies the psycopg2 requirement and avoid installing psycopg2?

Empirically the answer seems to be "no". I installed psycopg2-binary, then ran `python3 -m pip install -e .` in a directory with this setup.py file, and it tried to install psycopg2.

Is there a way that, in my setup.py file, I can depend on either psycopg2 or psycopg2-binary, whichever is available?

Thanks,
Kerrick

psycopg by date:

Previous
From: Scott Laird
Date:
Subject: Connection Types with Logical Replication functions
Next
From: Daniele Varrazzo
Date:
Subject: Re: Does psycopg2-binary provide the psycopg2 package?