{"action":"created","issue":{"url":"https://api.github.com/repos/heroku/heroku-buildpack-python/issues/277","repository_url":"https://api.github.com/repos/heroku/heroku-buildpack-python","labels_url":"https://api.github.com/repos/heroku/heroku-buildpack-python/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/heroku/heroku-buildpack-python/issues/277/comments","events_url":"https://api.github.com/repos/heroku/heroku-buildpack-python/issues/277/events","html_url":"https://github.com/heroku/heroku-buildpack-python/issues/277","id":135553462,"number":277,"title":"django[bcrypt] and libffi","user":{"login":"jambonrose","id":2659203,"avatar_url":"https://avatars.githubusercontent.com/u/2659203?v=3","gravatar_id":"","url":"https://api.github.com/users/jambonrose","html_url":"https://github.com/jambonrose","followers_url":"https://api.github.com/users/jambonrose/followers","following_url":"https://api.github.com/users/jambonrose/following{/other_user}","gists_url":"https://api.github.com/users/jambonrose/gists{/gist_id}","starred_url":"https://api.github.com/users/jambonrose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jambonrose/subscriptions","organizations_url":"https://api.github.com/users/jambonrose/orgs","repos_url":"https://api.github.com/users/jambonrose/repos","events_url":"https://api.github.com/users/jambonrose/events{/privacy}","received_events_url":"https://api.github.com/users/jambonrose/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-22T21:41:34Z","updated_at":"2016-02-23T15:04:45Z","closed_at":null,"body":"[According to Django's docs, the way to include `bcyrpt` is to install `django[bcrypt]`](https://docs.djangoproject.com/en/1.9/topics/auth/passwords/#using-bcrypt-with-django).\r\n\r\nPushing to Heroku with `django[bcrypt]` declared in a `requirements.txt` file fails, as `libffi` is not installed. It appears as though `pip-grep` is not detecting the `bcrypt` requirement.\r\n\r\nTo be fair, the requirement is not a large one.\r\n\r\n        # django/setup.py, lines 25-27, from stable/1.9.x\r\n        extras_require={\r\n            \"bcrypt\": [\"bcrypt\"],\r\n        },\r\n\r\nThe problem disappears if `bcrypt` is defined separately from Django. Nonetheless, it would be nice if the recommended usage in the documentation worked.\r\n\r\nI believe the easiest fix would be to add `django[bcrypt]` to the list on line 23 of `heroku-buildpack-python/bin/steps/cryptography`, and will open a PR if that is the desired solution.\r\n"},"comment":{"url":"https://api.github.com/repos/heroku/heroku-buildpack-python/issues/comments/187732366","html_url":"https://github.com/heroku/heroku-buildpack-python/issues/277#issuecomment-187732366","issue_url":"https://api.github.com/repos/heroku/heroku-buildpack-python/issues/277","id":187732366,"user":{"login":"jambonrose","id":2659203,"avatar_url":"https://avatars.githubusercontent.com/u/2659203?v=3","gravatar_id":"","url":"https://api.github.com/users/jambonrose","html_url":"https://github.com/jambonrose","followers_url":"https://api.github.com/users/jambonrose/followers","following_url":"https://api.github.com/users/jambonrose/following{/other_user}","gists_url":"https://api.github.com/users/jambonrose/gists{/gist_id}","starred_url":"https://api.github.com/users/jambonrose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jambonrose/subscriptions","organizations_url":"https://api.github.com/users/jambonrose/orgs","repos_url":"https://api.github.com/users/jambonrose/repos","events_url":"https://api.github.com/users/jambonrose/events{/privacy}","received_events_url":"https://api.github.com/users/jambonrose/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T15:04:45Z","updated_at":"2016-02-23T15:04:45Z","body":"I've just created PR #278 with the suggested fix."}}