Do not install all dependencies in dev mode (#7548)

* ps - do not install all dependencies

* Comment out blinkt because it depends on GPIO

* Add pip upgrade check back

* Disable import error blinkt

* Update comment

* Fix comment
This commit is contained in:
Paulus Schoutsen 2017-05-11 19:20:23 -07:00 committed by GitHub
parent 0e246059f9
commit 76675a54f8
4 changed files with 8 additions and 12 deletions

View file

@ -6,21 +6,15 @@ set -e
cd "$(dirname "$0")/.."
echo "Installing dependencies..."
# Requirements_all.txt states minimum pip version as 7.0.0 however,
# parameter --only-binary doesn't work with pip < 7.0.0. Causing
# python3 -m pip install -r requirements_all.txt to fail unless pip upgraded.
# Some requirements use parameter --only-binary only available
# in pip 7+. Upgrade if necessary.
if ! python3 -c 'import pkg_resources ; pkg_resources.require(["pip>=7.0.0"])' 2>/dev/null ; then
echo "Upgrading pip..."
python3 -m pip install -U pip
fi
python3 -m pip install -r requirements_all.txt
REQ_STATUS=$?
echo "Installing development dependencies..."
python3 -m pip install -r requirements_test.txt
echo "Installing test dependencies..."
python3 -m pip install -r requirements_test_all.txt
REQ_DEV_STATUS=$?