From 9b0c8ad8c7d9d17f68866bf47d7d9204b83043c5 Mon Sep 17 00:00:00 2001 From: Pavol Juhas Date: Sun, 16 Oct 2016 12:09:26 -0400 Subject: [PATCH] Define RPATH for travis build using Anaconda library. Also avoid copious warnings from Anaconda boost headers. --- .travis-sconscript.local | 15 +++++++++++++++ .travis.yml | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 .travis-sconscript.local diff --git a/.travis-sconscript.local b/.travis-sconscript.local new file mode 100644 index 00000000..70c1fce3 --- /dev/null +++ b/.travis-sconscript.local @@ -0,0 +1,15 @@ +# Customize scons build environment. + +Import('env') + +import os + +# Silence copious warnings from the boost headers. +P = os.environ['MYPREFIX'] +env.Prepend(CCFLAGS='-isystem{}/include'.format(P)) + +# Define path to the shared libraries from Anaconda environment. +L = P + '/lib' +env.Append(LINKFLAGS='-Wl,-rpath,{!r}'.format(L)) + +# vim: ft=python diff --git a/.travis.yml b/.travis.yml index edad34f0..a40ebe5d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -107,6 +107,8 @@ install: export MACOSX_DEPLOYMENT_TARGET=10.7; fi + - $NOMC || export MYPREFIX + - $NOMC || cp .travis-sconscript.local sconscript.local - scons build=fast prefix="${MYPREFIX}" test_installed=true alltests - MYALLTESTSFAST=$(ls -t ${PWD}/build/fast*/tests/alltests | head -1) - scons build=debug lib alltests