From f4c7160763bf6f35dfbb93bcbfeb0985912beb46 Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.com>
Date: Mon, 7 Jul 2014 14:20:34 -0400
Subject: [PATCH] ld_library_path?

---
 builds/runtimes/pypy-2.3.1 | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/builds/runtimes/pypy-2.3.1 b/builds/runtimes/pypy-2.3.1
index 829baf91..cc7a2aa4 100755
--- a/builds/runtimes/pypy-2.3.1
+++ b/builds/runtimes/pypy-2.3.1
@@ -3,10 +3,21 @@
 # Build Deps: libraries/sqlite, libraries/libffi
 
 OUT_PREFIX=$1
+export PATH="/app/.heroku/python/bin/:$PATH"
+export LD_LIBRARY_PATH="/app/.heroku/vendor/lib:$LD_LIBRARY_PATH"
+export LIBRARY_PATH="/app/.heroku/vendor/lib:$LIBRARY_PATH"
+
+
+hash -r
 
 echo "Building PyPy..."
-SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy-2.3.1-linux64.tar.bz2'
+SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy-2.3.1-src.tar.bz2'
 curl -L $SOURCE_TARBALL | tar jx
-cp -R pypy-2.0/* $OUT_PREFIX
+cd pypy-2.3.1-src
+
+cd pypy/goal
+python ../../rpython/bin/rpython -Ojit targetpypystandalone
+
+
 
 ln $OUT_PREFIX/bin/pypy $OUT_PREFIX/bin/python
-- 
GitLab