Skip to content

Commit db3ac3e

Browse files
committed
added xvfbwrapper requirement, fixing vtk in ci
1 parent 9a6728e commit db3ac3e

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.travis.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,22 @@ before_install:
2222
fsl afni elastix; fi
2323
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq fsl-atlases;
2424
fi
25-
- travis_retry sudo apt-get install -qq libx11-dev swig
2625
- if $INSTALL_DEB_DEPENDECIES; then source /etc/fsl/fsl.sh; fi
2726
- if $INSTALL_DEB_DEPENDECIES; then source /etc/afni/afni.sh; fi
28-
# Fix numpy problem: https://github.com/enthought/enable/issues/34#issuecomment-2029381
29-
- echo '[x11]' >> $HOME/.numpy-site.cfg
30-
- echo 'library_dirs = /usr/lib64:/usr/lib:/usr/lib/x86_64-linux-gnu' >> $HOME/.numpy-site.cfg
31-
- echo 'include_dirs = /usr/include:/usr/include/X11' >> $HOME/.numpy-site.cfg
27+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then travis_retry sudo apt-get install -qq libx11-dev swig;
28+
# Fix numpy problem: https://github.com/enthought/enable/issues/34#issuecomment-2029381
29+
echo '[x11]' >> $HOME/.numpy-site.cfg;
30+
echo 'library_dirs = /usr/lib64:/usr/lib:/usr/lib/x86_64-linux-gnu' >> $HOME/.numpy-site.cfg;
31+
echo 'include_dirs = /usr/include:/usr/include/X11' >> $HOME/.numpy-site.cfg;
32+
fi
3233
install:
3334
- conda update --yes conda
3435
- conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
3536
- source activate testenv
3637
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then pip install ordereddict; fi
37-
- conda install --yes numpy scipy nose networkx dateutil vtk
38+
- conda install --yes numpy scipy nose networkx dateutil
3839
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes traits; else pip install traits; fi
40+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes vtk; else pip install vtk; fi
3941
- pip install python-coveralls
4042
- pip install nose-cov
4143
# Add tvtk (PIL is required by blockcanvas)

circle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ dependencies:
1919
- echo 'source /etc/fsl/fsl.sh' >> $HOME/.profile
2020
- echo 'source /etc/afni/afni.sh' >> $HOME/.profile
2121
# Enable system-wide vtk
22-
- echo 'export PYTHONPATH=$PYTHONPATH:/usr/lib/pymodules/python2.7/' >> $HOME/.profile
23-
- export PYTHONPATH=$PYTHONPATH:/usr/lib/pymodules/python2.7/
22+
- echo 'ln -s /usr/lib/pymodules/python2.7/vtk ~/virtualenvs/venv-system/lib/python2.7/site-packages/' >> $HOME/.profile
23+
- ln -s /usr/lib/pymodules/python2.7/vtk ~/virtualenvs/venv-system/lib/python2.7/site-packages/
2424
# Set up python environment
2525
- pip install --upgrade pip
2626
- pip install -e .

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ nose>=1.2
88
future==0.15.2
99
simplejson>=3.8.0
1010
prov>=1.4.0
11+
xvfbwrapper

0 commit comments

Comments
 (0)