"...src/ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "5fa4345f600503b2c90ed8ae5673c44ee96cd9be"
Commit 1ddce750 authored by peastman's avatar peastman
Browse files

Install Cython on CI

parent 2a6a5edc
...@@ -132,9 +132,9 @@ before_install: ...@@ -132,9 +132,9 @@ before_install:
${AMDAPPSDK}/bin/x86_64/clinfo; ${AMDAPPSDK}/bin/x86_64/clinfo;
sudo apt-get install -y libgl1-mesa-dev; sudo apt-get install -y libgl1-mesa-dev;
fi fi
# Install swig for Python wrappers. However, testing CUDA and OpenCL, we # Install SWIG and Cython for Python wrappers. However, testing CUDA and
# skip the Python wrapper for speed. We're not using anaconda python, # OpenCL, we skip the Python wrapper for speed. We're not using anaconda
# but this is a fast way to get an apparently functional precompiled # python, but this is a fast way to get an apparently functional precompiled
# build of swig that's more modern than what's in apt. # build of swig that's more modern than what's in apt.
- if [[ "$OPENCL" == "false" && "$CUDA" == "false" && "$TRAVIS_OS_NAME" == "linux" ]]; then - if [[ "$OPENCL" == "false" && "$CUDA" == "false" && "$TRAVIS_OS_NAME" == "linux" ]]; then
wget http://anaconda.org/omnia/swig/3.0.7/download/linux-64/swig-3.0.7-0.tar.bz2; wget http://anaconda.org/omnia/swig/3.0.7/download/linux-64/swig-3.0.7-0.tar.bz2;
...@@ -142,6 +142,7 @@ before_install: ...@@ -142,6 +142,7 @@ before_install:
tar -xjvf swig-3.0.7-0.tar.bz2 -C $HOME/swig; tar -xjvf swig-3.0.7-0.tar.bz2 -C $HOME/swig;
export PATH=$HOME/swig/bin:$PATH; export PATH=$HOME/swig/bin:$PATH;
export SWIG_LIB=$HOME/swig/share/swig/3.0.7; export SWIG_LIB=$HOME/swig/share/swig/3.0.7;
pip install cython
fi fi
- if [[ "$OPENCL" == "false" && "$CUDA" == "false" && "$TRAVIS_OS_NAME" == "osx" ]]; then - if [[ "$OPENCL" == "false" && "$CUDA" == "false" && "$TRAVIS_OS_NAME" == "osx" ]]; then
wget http://anaconda.org/omnia/swig/3.0.7/download/osx-64/swig-3.0.7-0.tar.bz2; wget http://anaconda.org/omnia/swig/3.0.7/download/osx-64/swig-3.0.7-0.tar.bz2;
......
...@@ -11,6 +11,7 @@ install: ...@@ -11,6 +11,7 @@ install:
- "set PATH=C:\\Program Files (x86)\\Git\\bin;%PATH%" - "set PATH=C:\\Program Files (x86)\\Git\\bin;%PATH%"
- pip install pytest - pip install pytest
- pip install numpy - pip install numpy
- pip install cython
# Use cclash for compiler caching (experimental) # Use cclash for compiler caching (experimental)
- ps: wget https://github.com/inorton/cclash/releases/download/0.3.14/cclash-0.3.14.zip -OutFile cclash-0.3.14.zip - ps: wget https://github.com/inorton/cclash/releases/download/0.3.14/cclash-0.3.14.zip -OutFile cclash-0.3.14.zip
......
...@@ -26,7 +26,7 @@ create_conda_env() { ...@@ -26,7 +26,7 @@ create_conda_env() {
} }
conda remove -yn ${CONDAENV} --all --quiet || true conda remove -yn ${CONDAENV} --all --quiet || true
create_conda_env || create_conda_env # Crappy way to work around conda concurrency restrictions create_conda_env || create_conda_env # Crappy way to work around conda concurrency restrictions
conda install -yn ${CONDAENV} numpy scipy pytest --quiet conda install -yn ${CONDAENV} numpy scipy pytest cython --quiet
source activate ${CONDAENV} # enter our new environment source activate ${CONDAENV} # enter our new environment
# Build OpenMM # Build OpenMM
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment