Skip to content

Commit

Permalink
CI install numpy and scipy manually again
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeurer committed Mar 23, 2016
1 parent bde0dd0 commit f421928
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ addons:
packages:
- gcc-4.8
- g++-4.8
- libatlas-dev
- liblapack-dev
- libatlas-base-dev
- gfortran

env:
global:
Expand Down
7 changes: 5 additions & 2 deletions ci_scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ popd

# Configure the conda environment and put it in the path using the
# provided versions
conda create -n testenv --yes python=$PYTHON_VERSION pip nose \
numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION cython
conda create -n testenv --yes python=$PYTHON_VERSION pip nose cython
source activate testenv

# First install exact numpy and scipy version from pip
pip install numpy==1.9.3
pip install scipy==0.15.1

# Install requirements in correct order
cat requ.txt | xargs -n 1 -L 1 pip install

Expand Down
8 changes: 6 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ dependencies:

# Various dependencies
pre:
# From https://circleci.com/docs/environment#build-toolchain
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 10
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 10
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20
# from scikit-learn contrib
- sudo -E apt-get -yq remove texlive-binaries --purge
- sudo apt-get update
- sudo apt-get install libatlas-dev libatlas3gf-base
Expand All @@ -29,8 +35,6 @@ dependencies:
- sudo -E apt-get -yq update
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install dvipng texlive-latex-base texlive-latex-extra
# Installing packages to build the random forest
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gcc-4.8 g++-4.8
- export CXX="g++-4.8" CC="gcc-4.8"
# finally install the requirements of the package to allow autodoc
- pip install -r requ.txt

Expand Down

0 comments on commit f421928

Please sign in to comment.