2016-06-03 10:16:00 +02:00
|
|
|
###########################################################################
|
|
|
|
# before_install.sh
|
|
|
|
# ---------------------
|
|
|
|
# Date : August 2015
|
|
|
|
# Copyright : (C) 2015 by Nyall Dawson
|
|
|
|
# Email : nyall dot dawson at gmail dot com
|
|
|
|
###########################################################################
|
|
|
|
# #
|
|
|
|
# This program is free software; you can redistribute it and/or modify #
|
|
|
|
# it under the terms of the GNU General Public License as published by #
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or #
|
|
|
|
# (at your option) any later version. #
|
|
|
|
# #
|
|
|
|
###########################################################################
|
|
|
|
|
2016-06-27 08:39:23 +02:00
|
|
|
# Remove default gdal provided by travis (we will replace it with gdal 2)
|
|
|
|
brew remove gdal || true
|
|
|
|
|
2015-08-12 23:36:07 +10:00
|
|
|
brew tap osgeo/osgeo4mac
|
|
|
|
brew update
|
2016-06-27 08:39:23 +02:00
|
|
|
brew install osgeo/osgeo4mac/qgis-214 --without-postgresql --only-dependencies
|
2016-03-23 20:45:13 +01:00
|
|
|
brew install spawn-fcgi
|
|
|
|
brew install lighttpd
|
2015-08-12 23:36:29 +10:00
|
|
|
brew install poppler
|
2016-08-17 12:00:12 +02:00
|
|
|
brew install bison
|
|
|
|
brew install expat
|
2015-08-12 23:36:07 +10:00
|
|
|
|
|
|
|
brew ln bison --force
|
|
|
|
brew ln sqlite --force
|
|
|
|
brew ln openssl --force
|
|
|
|
brew ln expat --force
|
|
|
|
brew ln libxml2 --force
|
|
|
|
brew ln gettext --force
|
|
|
|
brew ln libffi --force
|
2015-08-19 19:16:24 +10:00
|
|
|
|
2016-03-09 00:46:42 +01:00
|
|
|
mkdir -p ${HOME}/Library/Python/2.7/lib/python/site-packages
|
|
|
|
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> ${HOME}/Library/Python/2.7/lib/python/site-packages/homebrew.pth
|
2016-06-27 08:39:23 +02:00
|
|
|
echo 'import site; site.addsitedir("/usr/local/opt/gdal-20/lib/python2.7/site-packages")' >> ${HOME}/Library/Python/2.7/lib/python/site-packages/gdal2.pth
|
2015-11-29 18:42:10 -06:00
|
|
|
|
|
|
|
# Needed for Processing
|
2016-03-14 23:58:06 +01:00
|
|
|
pip install psycopg2 numpy nose2 pyyaml mock future
|