File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ before_install:
104104 elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
105105 export CXX=clang++ CC=clang PYTHONHOME=$HOME/miniconda;
106106 fi
107+ - PYBIND11_VERSION=${PYBIND11_VERSION:-2.2.1}
107108
108109install :
109110 # Define the version of miniconda to download
@@ -126,8 +127,26 @@ install:
126127 - conda update -q conda
127128 # Useful for debugging any issues with conda
128129 - conda info -a
129- - conda install pytest numpy pybind11==2.2.1 -c conda-forge
130+ - conda install pytest numpy -c conda-forge
130131 - conda install cmake gtest -c conda-forge
132+ - |
133+ if [[ "$PYBIND11_VERSION" == "master" ]]; then
134+ conda_root=$(cd $(dirname $(which conda))/.. && pwd)
135+ mkdir -p $conda_root/tmp
136+ cd $conda_root/tmp
137+ curl -sSL -o pybind11.tar.gz https://github.com/pybind/pybind11/archive/master.tar.gz
138+ rm -rf pybind11-master
139+ tar xf pybind11.tar.gz
140+ cd pybind11-master
141+ python setup.py install
142+ mkdir -p build
143+ cd build
144+ cmake -DPYBIND11_TEST=OFF -DPYTHON_EXECUTABLE:FILEPATH=`which python` -DCMAKE_INSTALL_PREFIX=${conda_root} ..
145+ make install
146+ cd $TRAVIS_BUILD_DIR
147+ else
148+ conda install pybind11==${PYBIND11_VERSION} -c conda-forge
149+ fi
131150 - conda install xtensor==0.17.3 -c QuantStack
132151 - cmake -D BUILD_TESTS=ON -D CMAKE_INSTALL_PREFIX=$HOME/miniconda -D PYTHON_EXECUTABLE=$PY_EXE .
133152 - make -j2 test_xtensor_python
You can’t perform that action at this time.
0 commit comments