diff --git a/.travis.yml b/.travis.yml index 6ae966b9d..95659fb27 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,7 +37,7 @@ matrix: - ./.travis/install-dependencies.sh - export PATH="$HOME/miniconda/bin:$PATH" - cd doc - - pip install -r requirements-doc.txt + - pip install -q -r requirements-doc.txt - sphinx-build -W -b html -d _build/doctrees source _build/html - cd .. # Run Python linting. diff --git a/.travis/install-dependencies.sh b/.travis/install-dependencies.sh index 86e374065..3ec2ea79b 100755 --- a/.travis/install-dependencies.sh +++ b/.travis/install-dependencies.sh @@ -21,18 +21,18 @@ if [[ "$PYTHON" == "2.7" ]] && [[ "$platform" == "linux" ]]; then sudo apt-get update sudo apt-get install -y cmake pkg-config build-essential autoconf curl libtool python-dev python-numpy python-pip unzip # Install miniconda. - wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh + wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh -nv bash miniconda.sh -b -p $HOME/miniconda export PATH="$HOME/miniconda/bin:$PATH" - pip install numpy cloudpickle==0.3.0 cython cmake funcsigs click colorama psutil redis tensorflow gym flatbuffers opencv-python + pip install -q numpy cloudpickle==0.3.0 cython cmake funcsigs click colorama psutil redis tensorflow gym flatbuffers opencv-python elif [[ "$PYTHON" == "3.5" ]] && [[ "$platform" == "linux" ]]; then sudo apt-get update sudo apt-get install -y cmake pkg-config python-dev python-numpy build-essential autoconf curl libtool unzip # Install miniconda. - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh + wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh -nv bash miniconda.sh -b -p $HOME/miniconda export PATH="$HOME/miniconda/bin:$PATH" - pip install numpy cloudpickle==0.3.0 cython cmake funcsigs click colorama psutil redis tensorflow gym flatbuffers opencv-python + pip install -q numpy cloudpickle==0.3.0 cython cmake funcsigs click colorama psutil redis tensorflow gym flatbuffers opencv-python elif [[ "$PYTHON" == "2.7" ]] && [[ "$platform" == "macosx" ]]; then # check that brew is installed which -s brew @@ -41,14 +41,14 @@ elif [[ "$PYTHON" == "2.7" ]] && [[ "$platform" == "macosx" ]]; then exit 1 else echo "Updating brew." - brew update + brew update >/dev/null fi brew install cmake pkg-config automake autoconf libtool boost # Install miniconda. - wget https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh + wget https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh -nv bash miniconda.sh -b -p $HOME/miniconda export PATH="$HOME/miniconda/bin:$PATH" - pip install numpy cloudpickle==0.3.0 cython cmake funcsigs click colorama psutil redis tensorflow gym flatbuffers opencv-python + pip install -q numpy cloudpickle==0.3.0 cython cmake funcsigs click colorama psutil redis tensorflow gym flatbuffers opencv-python elif [[ "$PYTHON" == "3.5" ]] && [[ "$platform" == "macosx" ]]; then # check that brew is installed which -s brew @@ -57,23 +57,23 @@ elif [[ "$PYTHON" == "3.5" ]] && [[ "$platform" == "macosx" ]]; then exit 1 else echo "Updating brew." - brew update + brew update >/dev/null fi brew install cmake pkg-config automake autoconf libtool boost # Install miniconda. - wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh + wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh -nv bash miniconda.sh -b -p $HOME/miniconda export PATH="$HOME/miniconda/bin:$PATH" - pip install numpy cloudpickle==0.3.0 cython cmake funcsigs click colorama psutil redis tensorflow gym flatbuffers opencv-python + pip install -q numpy cloudpickle==0.3.0 cython cmake funcsigs click colorama psutil redis tensorflow gym flatbuffers opencv-python elif [[ "$LINT" == "1" ]]; then sudo apt-get update sudo apt-get install -y cmake build-essential autoconf curl libtool unzip # Install miniconda. - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh + wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh -nv bash miniconda.sh -b -p $HOME/miniconda export PATH="$HOME/miniconda/bin:$PATH" # Install Python linting tools. - pip install flake8 + pip install -q flake8 elif [[ "$LINUX_WHEELS" == "1" ]]; then sudo apt-get install docker sudo usermod -a -G docker travis diff --git a/python/build-wheel-macos.sh b/python/build-wheel-macos.sh index a20ee5ecd..d28da7ebd 100755 --- a/python/build-wheel-macos.sh +++ b/python/build-wheel-macos.sh @@ -50,12 +50,12 @@ for ((i=0; i<${#PY_VERSIONS[@]}; ++i)); do pushd python # Install setuptools_scm because otherwise when building the wheel for # Python 3.6, we see an error. - $PIP_CMD install setuptools_scm + $PIP_CMD install -q setuptools_scm # Fix the numpy version because this will be the oldest numpy version we can # support. - $PIP_CMD install numpy==1.10.4 cython + $PIP_CMD install -q numpy==1.10.4 cython # Install wheel to avoid the error "invalid command 'bdist_wheel'". - $PIP_CMD install wheel + $PIP_CMD install -q wheel # Add the correct Python to the path and build the wheel. This is only # needed so that the installation finds the cython executable. INCLUDE_UI=1 PATH=$MACPYTHON_PY_PREFIX/$PY_MM/bin:$PATH $PYTHON_EXE setup.py bdist_wheel diff --git a/python/build-wheel-manylinux1.sh b/python/build-wheel-manylinux1.sh index 14e94e219..644dd69bc 100755 --- a/python/build-wheel-manylinux1.sh +++ b/python/build-wheel-manylinux1.sh @@ -21,7 +21,7 @@ for PYTHON in cp27-cp27mu cp33-cp33m cp34-cp34m cp35-cp35m cp36-cp36m; do pushd python # Fix the numpy version because this will be the oldest numpy version we can # support. - /opt/python/${PYTHON}/bin/pip install numpy==1.10.4 cython + /opt/python/${PYTHON}/bin/pip install -q numpy==1.10.4 cython INCLUDE_UI=1 PATH=/opt/python/${PYTHON}/bin:$PATH /opt/python/${PYTHON}/bin/python setup.py bdist_wheel # In the future, run auditwheel here. mv dist/*.whl ../.whl/