Skip to content

Commit

Permalink
Remove no-binary for psycopg2
Browse files Browse the repository at this point in the history
  • Loading branch information
XanderVertegaal committed Dec 9, 2024
1 parent 7ffb124 commit b982fd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions {{cookiecutter.slug}}/backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,11 @@ Create and activate a virtualenv. Ensure your working directory is the one that
```console
$ psql -f create_db.sql
$ pip install pip-tools
$ pip install -r requirements.txt
$ pip sync
$ python manage.py migrate
$ python manage.py createsuperuser
```

We need to install `psycopg2` with the `--no-binary` flag [until version 2.8 of `psycopg2` is available][8]. If this were not the case, we could use `pip-sync` instead of `pip install -r`; the former currently doesn't work because of the `--no-binary` flag being present in the `requirements.txt`.

[8]: http://initd.org/psycopg/docs/install.html#disabling-wheel-packages-for-psycopg-2-7

If you are overriding the default settings, you may pass `--pythonpath` and `--settings` arguments to every invocation of `python manage.py`. `--settings` should be the name of the module (without `.py`) with your settings overrides. `--pythonpath` should be the path to the directory with your overridden settings module.


Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.slug}}/backend/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Django>=4.0.1,<5
djangorestframework
django-livereload-server
django-revproxy>=0.10.0
psycopg2 --no-binary psycopg2
psycopg2
pytest
pytest-django
pytest-xdist

0 comments on commit b982fd7

Please sign in to comment.