#!/usr/bin/env bash
# Build Path: /app/.heroku/python/
# Build Deps: libraries/sqlite

# NOTICE: This formula only works for the cedar stack, not cedar-14.

OUT_PREFIX=$1

source ./download_python
download_python "2.6"

# Protect 2.6 builds from parent Python (causes segfault during build).
unset LANG PYTHONHOME PYTHONPATH

cd src
./configure --prefix=$OUT_PREFIX --enable-shared
make
make install
