Install psycopg2-binary when not using docker locally (#1569)

- The binary package should be installable on Windows locally
- The binary package is not recommended for Production, compile from
  source
This commit is contained in:
Bruno Alla 2018-03-16 21:32:43 +00:00 committed by Daniel Roy Greenfeld
parent 020f69c410
commit 80618f0ace
3 changed files with 6 additions and 5 deletions

View File

@ -9,11 +9,6 @@ argon2-cffi==18.1.0 # https://github.com/hynek/argon2_cffi
{%- if cookiecutter.use_whitenoise == 'y' %}
whitenoise==3.3.1 # https://github.com/evansd/whitenoise
{%- endif %}
{%- if cookiecutter.windows == 'y' %}
# TODO: On Windows, install psycopg2 manually from http://www.lfd.uci.edu/~gohlke/pythonlibs/#psycopg
{%- else %}
psycopg2==2.7.4 --no-binary psycopg2 # https://github.com/psycopg/psycopg2
{%- endif %}
redis>=2.10.5 # https://github.com/antirez/redis
{%- if cookiecutter.use_celery == "y" %}
celery==3.1.25 # pyup: <4.0 # https://github.com/celery/celery

View File

@ -3,6 +3,11 @@
Werkzeug==0.14.1 # https://github.com/pallets/werkzeug
ipdb==0.11 # https://github.com/gotcha/ipdb
Sphinx==1.7.1 # https://github.com/sphinx-doc/sphinx
{%- if cookiecutter.use_docker == 'y' %}
psycopg2==2.7.4 --no-binary psycopg2 # https://github.com/psycopg/psycopg2
{%- else %}
psycopg2-binary==2.7.4 # https://github.com/psycopg/psycopg2
{%- endif %}
# Testing
# ------------------------------------------------------------------------------

View File

@ -5,6 +5,7 @@
gevent==1.2.2
gunicorn==19.7.1 # https://github.com/benoitc/gunicorn
boto3==1.6.2 # pyup: update minor # https://github.com/boto/boto3
psycopg2==2.7.4 --no-binary psycopg2 # https://github.com/psycopg/psycopg2
{%- if cookiecutter.use_whitenoise == 'n' %}
Collectfast==0.6.0 # https://github.com/antonagestam/collectfast
{%- endif %}