2016-06-03 10:16:00 +02:00
|
|
|
###########################################################################
|
2017-04-23 13:08:58 +02:00
|
|
|
# before_install.sh
|
2016-06-03 10:16:00 +02:00
|
|
|
# ---------------------
|
|
|
|
# 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. #
|
|
|
|
# #
|
|
|
|
###########################################################################
|
|
|
|
|
2018-06-01 08:21:48 +10:00
|
|
|
date +%s > /tmp/travis_timestamp
|
2017-04-26 10:34:41 +02:00
|
|
|
|
2017-04-23 13:08:58 +02:00
|
|
|
brew tap osgeo/osgeo4mac
|
|
|
|
brew update
|
|
|
|
brew install python3
|
2016-03-17 09:48:07 +01:00
|
|
|
|
2017-04-23 13:08:58 +02:00
|
|
|
pip3 install \
|
|
|
|
numpy \
|
|
|
|
psycopg2 \
|
|
|
|
numpy \
|
|
|
|
nose2 \
|
|
|
|
pyyaml \
|
|
|
|
mock \
|
|
|
|
future \
|
|
|
|
termcolor
|
2016-03-17 09:48:07 +01:00
|
|
|
|
2017-04-23 13:08:58 +02:00
|
|
|
brew install \
|
|
|
|
qscintilla2 \
|
|
|
|
qt \
|
|
|
|
qt5-webkit \
|
|
|
|
qca \
|
|
|
|
qwtpolar \
|
|
|
|
gsl \
|
|
|
|
sqlite \
|
|
|
|
expat \
|
|
|
|
proj \
|
|
|
|
gdal2-python --with-python3 \
|
|
|
|
spawn-fcgi \
|
|
|
|
lighttpd \
|
|
|
|
poppler \
|
|
|
|
bison \
|
|
|
|
expat \
|
|
|
|
bison \
|
|
|
|
flex \
|
|
|
|
ninja \
|
|
|
|
ccache \
|
|
|
|
spatialindex \
|
|
|
|
fastcgi \
|
|
|
|
qtkeychain \
|
2017-08-15 19:26:10 +02:00
|
|
|
gnu-sed \
|
|
|
|
libzip
|
2017-04-23 13:08:58 +02:00
|
|
|
|
|
|
|
|
2018-06-01 08:21:48 +10:00
|
|
|
mkdir -p "${HOME}/Library/Python/3.6/lib/python/site-packages"
|
|
|
|
echo 'import site; site.addsitedir("/usr/local/opt/gdal2-python/lib/python3.6/site-packages")' >> "${HOME}/Library/Python/3.6/lib/python/site-packages/gdal2.pth"
|