Skip to content

Commit 9b0c8ad

Browse files
committed
Define RPATH for travis build using Anaconda library.
Also avoid copious warnings from Anaconda boost headers.
1 parent 2593c6a commit 9b0c8ad

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.travis-sconscript.local

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Customize scons build environment.
2+
3+
Import('env')
4+
5+
import os
6+
7+
# Silence copious warnings from the boost headers.
8+
P = os.environ['MYPREFIX']
9+
env.Prepend(CCFLAGS='-isystem{}/include'.format(P))
10+
11+
# Define path to the shared libraries from Anaconda environment.
12+
L = P + '/lib'
13+
env.Append(LINKFLAGS='-Wl,-rpath,{!r}'.format(L))
14+
15+
# vim: ft=python

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ install:
107107
export MACOSX_DEPLOYMENT_TARGET=10.7;
108108
fi
109109

110+
- $NOMC || export MYPREFIX
111+
- $NOMC || cp .travis-sconscript.local sconscript.local
110112
- scons build=fast prefix="${MYPREFIX}" test_installed=true alltests
111113
- MYALLTESTSFAST=$(ls -t ${PWD}/build/fast*/tests/alltests | head -1)
112114
- scons build=debug lib alltests

0 commit comments

Comments
 (0)