Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use virtualenv

  • Loading branch information...
commit ead32bd91c88ccf402185091d59cfd7fa529f35f 1 parent bb23f40
@aaronbatalion authored
Showing with 23 additions and 14 deletions.
  1. +23 −14 bin/compile
View
37 bin/compile
@@ -72,6 +72,14 @@ 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)
@@ -79,22 +87,23 @@ 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/^/ /'
Please sign in to comment.
Something went wrong with that request. Please try again.