Skip to content

Commit

Permalink
README: Update the pylibmc requirements.txt instructions
Browse files Browse the repository at this point in the history
pylibmc no longer has to be in the root requirements.txt file, since the
Python buildpack now uses pip-grep (rather than regex) to determine
whether pylibmc is in the requirements files:
https://github.com/heroku/heroku-buildpack-python/blob/v75/bin/steps/pylibmc#L22

This has been fixed since v43, which was released August 2014:
heroku/heroku-buildpack-python@47c40ce

The Heroku memcachier docs haven't yet been updated to reflect this,
however I have submitted a request for it to be corrected too:
https://devcenter.heroku.com/articles/memcachier#django
  • Loading branch information
Ed Morley committed Jan 30, 2016
1 parent 8830d1e commit 0a1a772
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ from memcacheify import memcacheify
CACHES = memcacheify()
```

Next, edit your ``requirements.txt`` file (which Heroku reads) and add
``pylibmc==1.2.3`` to the bottom of the file. This is required for Heroku to
detect the necessary C dependencies and 'bootstrap' your application. This requirement
has to be in the root ``requirements.txt`` file, not in any imported requirements.
([Solution from Stack Overflow](http://stackoverflow.com/questions/11507639/memcached-on-heroku-w-django-cant-install-pylibmc-memcacheify/11587142#11587142))
Next, ensure pylibmc is present in your ``requirements.txt`` file (or one
included from it), so the Heroku Python buildpack will detect the necessary
C dependencies and 'bootstrap' your application.

Assuming you have a memcache server available to your application on Heroku, it
will instantly be available. If you have no memcache addon provisioned for your
Expand Down

0 comments on commit 0a1a772

Please sign in to comment.