#!/bin/sh

set -e
cd "`dirname $0`/.."

# Install dependencies.
pip install -e .
pip install ijson==2.3.0

curl https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz > cmake.tgz
echo '5df4b69d9e85093ae78b1070d5cb9f824ce0bdd02528948c3f6a740e240083e5  cmake.tgz' \
     | sha256sum -c /dev/stdin --status
tar zxf cmake.tgz
PATH=/app/cmake-3.6.2-Linux-x86_64/bin:$PATH

git clone https://github.com/lloyd/yajl.git
cd yajl
git checkout 2.1.0
./configure
sudo make install
cd ..

URL=https://registry.npmjs.com/-/all
URL=https://gist.githubusercontent.com/whit537/fec53fb1f0618b3d5757f0ab687b7476/raw/25de82f6197df49b47d180db0d62b4e8c6f7f9f8/one

curl $URL | sync-npm serialize /dev/stdin | sync-npm upsert /dev/stdin

#!/bin/sh

set -e
cd "`dirname $0`/.."

# Install dependencies.
pip install -e .
pip install ijson==2.3.0

curl https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz > cmake.tgz
echo '5df4b69d9e85093ae78b1070d5cb9f824ce0bdd02528948c3f6a740e240083e5  cmake.tgz' \
     | sha256sum -c /dev/stdin --status
tar zxf cmake.tgz
PATH=/app/cmake-3.6.2-Linux-x86_64/bin:$PATH

git clone https://github.com/lloyd/yajl.git
cd yajl
git checkout 2.1.0
./configure -p /app/.heroku/python
make install
cd ..

URL=https://registry.npmjs.com/-/all
URL=https://gist.githubusercontent.com/whit537/fec53fb1f0618b3d5757f0ab687b7476/raw/25de82f6197df49b47d180db0d62b4e8c6f7f9f8/one

curl $URL | sync-npm serialize /dev/stdin | sync-npm upsert /dev/stdin

Put libyajl where we can find it
Put libyajl where we can find it

This location is already in LD_LIBRARY_PATH.
