Does psycopg2-binary provide the psycopg2 package?

Поиск
Список
Период
Сортировка
От Kerrick Staley
Тема Does psycopg2-binary provide the psycopg2 package?
Дата
Msg-id CACfSeTE=r0BkTB8S_1BDw8=5tharqoZAaeRLUNkYPsSu8jbw+A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Does psycopg2-binary provide the psycopg2 package?
Список 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 по дате отправления:

Предыдущее
От: Scott Laird
Дата:
Сообщение: Connection Types with Logical Replication functions
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: Does psycopg2-binary provide the psycopg2 package?