Skip to content

Commit

Permalink
Fix paths to Python headers and libs.
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Sep 16, 2016
1 parent 1488667 commit 695702b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ install:
- KEY_MODELLER=`cat mod-license` sudo dpkg -i modeller_9.17-1_amd64.deb
- ln -sf /usr/lib/python$TRAVIS_PYTHON_VERSION/dist-packages/_modeller.so $(dirname $(which python))/../lib/*/site-packages/
- ln -sf /usr/lib/python$TRAVIS_PYTHON_VERSION/dist-packages/modeller $(dirname $(which python))/../lib/*/site-packages/
- ls -l $(dirname $(which python))/../include/*
- ls -l $(dirname $(which python))/../lib/*
script:
- mkdir build
- cd build
- cmake .. -DPYTHON_INCLUDE_DIR=$(dirname $(which python))/../include/* -DPYTHON_LIBRARY=$(dirname $(which python))/../lib/*/*.so
- PYTHON_INC=$(echo $(dirname $(which python))/../include/*/)
- PYTHON_LIB=$(echo /opt/python/${TRAVIS_PYTHON_VERSION}*/lib/libpython${TRAVIS_PYTHON_VERSION}*.so)
- cmake .. -DPYTHON_INCLUDE_DIR=$PYTHON_INC -DPYTHON_LIBRARY=$PYTHON_LIB
- make
- ln -sf __mdt.so pyext/_mdt.so
- ctest --output-on-failure
Expand Down

0 comments on commit 695702b

Please sign in to comment.