public inbox for [email protected]
help / color / mirror / Atom feedFrom: Kerrick Staley <[email protected]>
To: [email protected]
Subject: Does psycopg2-binary provide the psycopg2 package?
Date: Mon, 22 May 2023 12:05:43 -0400
Message-ID: <CACfSeTE=r0BkTB8S_1BDw8=5tharqoZAaeRLUNkYPsSu8jbw+A@mail.gmail.com> (raw)
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
<https://gist.github.com/kerrick-js/b0962b74853cc297cf2186d251763262;, 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
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: Does psycopg2-binary provide the psycopg2 package?
In-Reply-To: <CACfSeTE=r0BkTB8S_1BDw8=5tharqoZAaeRLUNkYPsSu8jbw+A@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox