1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Pip requirements and fixes.

1) Reduced the flags being sent to pip.
2) Required a minimum of pip 7.0.0 for Home Assistant.
This commit is contained in:
Ryan Kraus
2015-08-29 23:17:47 -04:00
parent bfa3900e6a
commit 4e01e7ca9b
3 changed files with 3 additions and 2 deletions

View File

@@ -13,8 +13,7 @@ def install_package(package, upgrade=False, target=None):
"""Install a package on PyPi. Accepts pip compatible package strings.
Return boolean if install successfull."""
# Not using 'import pip; pip.main([])' because it breaks the logger
args = [sys.executable, '-m', 'pip', 'install', '--quiet',
'--isolated', '-I', package]
args = [sys.executable, '-m', 'pip', 'install', '--quiet', package]
if upgrade:
args.append('--upgrade')
if target: