Re: Psycopg 2.7.4 released - Mailing list psycopg

From Daniele Varrazzo
Subject Re: Psycopg 2.7.4 released
Date
Msg-id CA+mi_8YBNcgbguijY=0_RCVQeDi-2Mav8oVL_Yk6uUeDWEVtrw@mail.gmail.com
Whole thread Raw
In response to Re: Psycopg 2.7.4 released  (Federico <rotellaro@gmail.com>)
Responses Re: Psycopg 2.7.4 released
List psycopg
Sorry, wrong send earlier...

On 8 Feb 2018 7:04 p.m., "Federico" <rotellaro@gmail.com> wrote:

I was just wondering how can I manage this separation in the setup.py (install_requires argument).
Currently I list psycopg2>=2.7.3.

Shall I follow the pattern and create two different source packages or do you recommend a different approach?

If binary packages work as expected you may just use that as a dependency, so "psycopg2-binary>=2.7.3" should do.

But now it occurs to me that the choice of not releasing a source package under psycopg2-binary was probably wrong: if you update your requirements as above, installation would fail if the user has an old pip version, or a non glibc architecture (e.g. Linux Alpine).

I'll create the missing package tomorrow morning. Once done, if your app is not a multithread program also using the system ssh, depending on binary is enough, I don't see reason for two packages.

Cheers

-- Daniele 

psycopg by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Re: Psycopg 2.7.4 released
Next
From: Federico
Date:
Subject: Re: Psycopg 2.7.4 released