Permalink
Browse files

use virtualenv

  • Loading branch information...
1 parent bb23f40 commit ead32bd91c88ccf402185091d59cfd7fa529f35f @aaronbatalion committed Oct 8, 2012
Showing with 23 additions and 14 deletions.
  1. +23 −14 bin/compile
View
@@ -72,29 +72,38 @@ then
echo -n " Installing Bazaar..."
pip install --use-mirrors bzr > /dev/null 2>&1
echo " done"
+
+ echo -n " Installing Libpng..."
+ pip install --use-mirrors libpng > /dev/null 2>&1
+ echo " done"
+
+ echo -n " Installing Libgd..."
+ pip install --use-mirrors libgd > /dev/null 2>&1
+ echo " done"
fi
name=$(cat $build/.godir)
p=$GOPATH/src/$name
mkdir -p $p
cp -R $build/* $p
-LIBGD_PACKAGE="http://cloud.github.com/downloads/aaronbatalion/heroku-buildpack-go/10719d09-6faf-45d7-9e35-69badb8b1099.gz"
-VENDORED_LIBGD="$(mktmpdir libgd)"
-echo -n " Installing LibGD..."
-mkdir -p $VENDORED_LIBGD && curl $LIBGD_PACKAGE -s -o - | tar xzf - -C $VENDORED_LIBGD
-# setting up paths for building
-PATH="$VENDORED_LIBGD:$PATH"
-INCLUDE_PATH="$VENDORED_LIBGD/include"
-export LD_PRELOAD="$VENDORED_LIBGD/lib/libgd.so"
-export LDFLAGS="-lgd"
-export LD_LIBRARY_PATH="$VENDORED_LIBGD/lib"
-export LIBPATH="$VENDORED_LIBGD/lib"
-export CPATH="$INCLUDE_PATH"
-export CPPPATH="$INCLUDE_PATH"
+#if test -d $VENDORED_LIBGD
+#LIBGD_PACKAGE="http://cloud.github.com/downloads/aaronbatalion/heroku-buildpack-go/10719d09-6faf-45d7-9e35-69badb8b1099.gz"
+#VENDORED_LIBGD="$(mktmpdir libgd)"
+#echo -n " Installing LibGD to $VENDORED_LIBGD..."
+#mkdir -p $VENDORED_LIBGD && curl $LIBGD_PACKAGE -s -o - | tar xzf - -C $VENDORED_LIBGD
+## setting up paths for building
+#PATH="$VENDORED_LIBGD:$PATH"
+#INCLUDE_PATH="$VENDORED_LIBGD/include"
+#export LD_PRELOAD="$VENDORED_LIBGD/lib/libgd.so"
+#export LDFLAGS="-lgd"
+#export LD_LIBRARY_PATH="$VENDORED_LIBGD/lib"
+#export LIBPATH="$VENDORED_LIBGD/lib"
+#export CPATH="$INCLUDE_PATH"
+#export CPPPATH="$INCLUDE_PATH"
unset GIT_DIR # unset git dir or it will mess with goinstall
-echo "-----> Running: go get ./..."
+echo -n "-----> Running: go get ./..."
cd $p
go get ./... | sed -u 's/^/ /'

0 comments on commit ead32bd

Please sign in to comment.