mirror of
https://github.com/home-assistant/core.git
synced 2025-06-08 15:17:07 +00:00
Fixed bootstrap to upgrade pip if mininum version not present. As parameter --only-binary in requirements.txt doesn't work on pip < 7.0.0 so install fails. This is to simplify the setup of the development environment when using pyvenv. (#5301)
This commit is contained in:
parent
5f7d53c06b
commit
a7cb9bdfff
@ -7,11 +7,19 @@ set -e
|
|||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
echo "Installing dependencies..."
|
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.
|
||||||
|
|
||||||
|
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
|
python3 -m pip install -r requirements_all.txt
|
||||||
|
|
||||||
REQ_STATUS=$?
|
REQ_STATUS=$?
|
||||||
|
|
||||||
echo "Installing development dependencies.."
|
echo "Installing development dependencies..."
|
||||||
python3 -m pip install -r requirements_test.txt
|
python3 -m pip install -r requirements_test.txt
|
||||||
|
|
||||||
REQ_DEV_STATUS=$?
|
REQ_DEV_STATUS=$?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user