psycopg2 for django with postgresql now available in binary form
dmsimard opened this issue · 0 comments
dmsimard commented
What is the issue ?
When installing psycopg2, it usually needs development libraries installed. I didn't know but it looks like there's a binary package available now:
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
What should be happening ?
Maybe we should recommend using psycopg2-binary and leverage that in the ara collection: https://github.com/ansible-community/ara-collection/blob/ff0ef0c4e60b76d18c26a9d501f1b95496006f3d/roles/ara_api/tasks/database_engine/django.db.backends.postgresql.yaml#L45