Skip to content
Snippets Groups Projects
Commit 4e01e7ca authored by Ryan Kraus's avatar Ryan Kraus
Browse files

Pip requirements and fixes.

1) Reduced the flags being sent to pip.
2) Required a minimum of pip 7.0.0 for Home Assistant.
parent bfa3900e
No related branches found
No related tags found
No related merge requests found
...@@ -13,8 +13,7 @@ def install_package(package, upgrade=False, target=None): ...@@ -13,8 +13,7 @@ def install_package(package, upgrade=False, target=None):
"""Install a package on PyPi. Accepts pip compatible package strings. """Install a package on PyPi. Accepts pip compatible package strings.
Return boolean if install successfull.""" Return boolean if install successfull."""
# Not using 'import pip; pip.main([])' because it breaks the logger # Not using 'import pip; pip.main([])' because it breaks the logger
args = [sys.executable, '-m', 'pip', 'install', '--quiet', args = [sys.executable, '-m', 'pip', 'install', '--quiet', package]
'--isolated', '-I', package]
if upgrade: if upgrade:
args.append('--upgrade') args.append('--upgrade')
if target: if target:
......
requests>=2,<3 requests>=2,<3
pyyaml>=3.11,<4 pyyaml>=3.11,<4
pytz>=2015.4 pytz>=2015.4
pip>=7.0.0
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
requests>=2,<3 requests>=2,<3
pyyaml>=3.11,<4 pyyaml>=3.11,<4
pytz>=2015.4 pytz>=2015.4
pip>=7.0.0
# Optional, needed for specific components # Optional, needed for specific components
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment