pgantomizer icon indicating copy to clipboard operation
pgantomizer copied to clipboard

psycopg2 will rename the package to psycopg2-binary!

Open confiq opened this issue 6 years ago • 2 comments

Starting with Psycopg 2.7.4, pscopg2 will have 2 pip packages, one from source and another psycopg2-binary. Right now, pgantomizer uses binary but that will be removed in 2.8[1].

I'm having version 2.7.6.1 and each time when I import I get:

/myenv/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.

I don't mind opening PR with updated setup.py. What do you think?

[1] http://initd.org/psycopg/articles/2018/02/08/psycopg-274-released/

confiq avatar Jan 22 '19 17:01 confiq

Hi, thanks for the news, I'm not using the project actively myself anymore so feel free to open a PR :-)

asgeirrr avatar Jan 23 '19 08:01 asgeirrr

I would go with having psycopg2-binary as a dependency.

asgeirrr avatar Jan 23 '19 08:01 asgeirrr