Skip to content

Commit

Permalink
Pip requirements and fixes.
Browse files Browse the repository at this point in the history
1) Reduced the flags being sent to pip.
2) Required a minimum of pip 7.0.0 for Home Assistant.
  • Loading branch information
rmkraus committed Aug 30, 2015
1 parent bfa3900 commit 4e01e7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions homeassistant/util/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
requests>=2,<3
pyyaml>=3.11,<4
pytz>=2015.4
pip>=7.0.0
1 change: 1 addition & 0 deletions requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
requests>=2,<3
pyyaml>=3.11,<4
pytz>=2015.4
pip>=7.0.0

# Optional, needed for specific components

Expand Down

0 comments on commit 4e01e7c

Please sign in to comment.