heroku/heroku-buildpack-python — pull request #96 by grosskur (2013-06-28 03:34:11+00:00)
Title: Make builds work when BUILD_DIR=/app

When building with either 'git push' or Anvil, BUILD_DIR is set to a
temporary directory (not /app). However, because the prebuilt Python
interpreter has a prefix of /app/.heroku/python baked into it, the
contents of BUILD_DIR need to be temporarily swapped into /app for the
rest of the buildpack to work.

This temporary swapping breaks other buildpack-compatible tools that
set BUILD_DIR=/app. So the fix is straightforward---skip the swapping
in this case.