"plugins/vscode:/vscode.git/clone" did not exist on "43c792f41d7d6ddd116f67f956261e486e02700a"
Commit 001408f9 authored by peastman's avatar peastman
Browse files

Conda packages for cmake and swig

parent 8d7b7983
...@@ -134,18 +134,30 @@ before_install: ...@@ -134,18 +134,30 @@ before_install:
fi fi
# The cmake version installed by apt on ARM and PPC is very old, # The cmake version installed by apt on ARM and PPC is very old,
# so build a more recent version from source. # so build a more recent version from source.
- if [[ "${TRAVIS_CPU_ARCH}" == "ppc64le" || "${TRAVIS_CPU_ARCH}" == "arm64" ]]; then #- if [[ "${TRAVIS_CPU_ARCH}" == "ppc64le" || "${TRAVIS_CPU_ARCH}" == "arm64" ]]; then
sudo apt remove cmake; # sudo apt remove cmake;
pushd ${HOME}; # pushd ${HOME};
wget https://github.com/Kitware/CMake/releases/download/v3.17.1/cmake-3.17.1.tar.gz; # wget https://github.com/Kitware/CMake/releases/download/v3.17.1/cmake-3.17.1.tar.gz;
tar xf cmake-3.17.1.tar.gz; # tar xf cmake-3.17.1.tar.gz;
cd cmake-3.17.1; # cd cmake-3.17.1;
./bootstrap --prefix=${HOME}/cmake; # ./bootstrap --prefix=${HOME}/cmake;
make -j 4; # make -j 4;
make install; # make install;
export PATH=${HOME}/cmake/bin:${PATH}; # export PATH=${HOME}/cmake/bin:${PATH};
echo ${PATH}; # echo ${PATH};
popd; # popd;
# fi
- if [[ "${TRAVIS_CPU_ARCH}" == "ppc64le" ]]; then
wget https://anaconda.org/conda-forge/cmake/3.17.0/download/linux-ppc64le/cmake-3.17.0-hfb1cb51_0.tar.bz2;
mkdir $HOME/cmake;
tar -xjvf cmake-3.17.0-hfb1cb51_0.tar.bz2 -C $HOME/cmake;
export PATH=$HOME/cmake/bin:$PATH;
fi
- if [[ "${TRAVIS_CPU_ARCH}" == "arm64" ]]; then
wget https://anaconda.org/conda-forge/cmake/3.17.0/download/linux-aarch64/cmake-3.17.0-h28c56e5_0.tar.bz2;
mkdir $HOME/cmake;
tar -xjvf cmake-3.17.0-h28c56e5_0.tar.bz2 -C $HOME/cmake;
export PATH=$HOME/cmake/bin:$PATH;
fi fi
#- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then #- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
# CMAKE_URL="http://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz"; # CMAKE_URL="http://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz";
...@@ -169,7 +181,7 @@ before_install: ...@@ -169,7 +181,7 @@ before_install:
# OpenCL, we skip the Python wrapper for speed. We're not using anaconda # OpenCL, we skip the Python wrapper for speed. We're not using anaconda
# python, 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" && "${TRAVIS_CPU_ARCH}" != "ppc64le" && "${TRAVIS_CPU_ARCH}" != "arm64" ]]; 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;
mkdir $HOME/swig; mkdir $HOME/swig;
tar -xjvf swig-3.0.7-0.tar.bz2 -C $HOME/swig; tar -xjvf swig-3.0.7-0.tar.bz2 -C $HOME/swig;
...@@ -177,6 +189,22 @@ before_install: ...@@ -177,6 +189,22 @@ before_install:
export SWIG_LIB=$HOME/swig/share/swig/3.0.7; export SWIG_LIB=$HOME/swig/share/swig/3.0.7;
pip install cython; pip install cython;
fi fi
- if [[ "${TRAVIS_CPU_ARCH}" == "ppc64le" ]]; then
wget https://anaconda.org/conda-forge/swig/4.0.1/download/linux-ppc64le/swig-4.0.1-hb209c28_0.tar.bz2;
mkdir $HOME/swig;
tar -xjvf swig-4.0.1-hb209c28_0.tar.bz2 -C $HOME/swig;
export PATH=$HOME/swig/bin:$PATH;
export SWIG_LIB=$HOME/swig/share/swig/4.0.1;
pip install cython;
fi
- if [[ "${TRAVIS_CPU_ARCH}" == "arm64" ]]; then
wget https://anaconda.org/conda-forge/swig/4.0.1/download/linux-aarch64/swig-4.0.1-he1b5a44_0.tar.bz2;
mkdir $HOME/swig;
tar -xjvf swig-4.0.1-he1b5a44_0.tar.bz2 -C $HOME/swig;
export PATH=$HOME/swig/bin:$PATH;
export SWIG_LIB=$HOME/swig/share/swig/4.0.1;
pip install cython;
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;
mkdir $HOME/swig; mkdir $HOME/swig;
......
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