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
--
-- Federico Campoli Hove, East Sussex, UK, Planet Earth, The Milky Way Galaxy /******************************* There's no point being grown-up if you can't be childish sometimes. (The fourth Doctor) http://www.pgdba.co.uk *******************************/