title: heroku buildpack for python/geos
body: <p>I am running my django app on heroku. I want to use their websolr plugin to add spatial search to the app via django haystack.</p>
  
  <p>Spatial serach in django haystack depends on the GEOS C library that is not deployed on heroku by default.</p>
  
  <p>So in order to use spatial search I followed <a href="https://devcenter.heroku.com/articles/buildpack-binaries" rel="nofollow">https://devcenter.heroku.com/articles/buildpack-binaries</a> to create a binary package of GEOS.</p>
  
  <p>To deploy the binaries I forked the <a href="https://github.com/dtornow/heroku-buildpack-python.git" rel="nofollow">heroku buildback for python</a> and modified bin/compile to include:</p>
  
  <pre><code>AWESOME_VM_BINARY="http://vulcan-dtornow.herokuapp.com/output/05391114-f314-4aa7-9aab-bc09025d4898"
  
  mkdir -p /app/.heroku/vendor/geos
  curl $AWESOME_VM_BINARY -o - | tar -xz -C /app/.heroku/vendor/geos -f -
  </code></pre>
  
  <p>I added the custom build pack to my application, redeployed but still I cannot access the library. When I run ls the geos folder does not show up </p>
  
  <pre><code>heroku run ls /app/.heroku/vendor
  </code></pre>
  
  <p>Any idea what I am missing? Thanks for your help!</p>