mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Prefere binary with wheels (#24669)
This commit is contained in:
parent
78b7ed0ebe
commit
c9453bab19
@ -66,7 +66,7 @@ def install_package(package: str, upgrade: bool = True,
|
|||||||
if constraints is not None:
|
if constraints is not None:
|
||||||
args += ['--constraint', constraints]
|
args += ['--constraint', constraints]
|
||||||
if find_links is not None:
|
if find_links is not None:
|
||||||
args += ['--find-links', find_links]
|
args += ['--find-links', find_links, '--prefer-binary']
|
||||||
if target:
|
if target:
|
||||||
assert not is_virtual_env()
|
assert not is_virtual_env()
|
||||||
# This only works if not running in venv
|
# This only works if not running in venv
|
||||||
|
@ -178,7 +178,7 @@ def test_install_find_links(mock_sys, mock_popen, mock_env_copy, mock_venv):
|
|||||||
mock_popen.call_args ==
|
mock_popen.call_args ==
|
||||||
call([
|
call([
|
||||||
mock_sys.executable, '-m', 'pip', 'install', '--quiet',
|
mock_sys.executable, '-m', 'pip', 'install', '--quiet',
|
||||||
TEST_NEW_REQ, '--find-links', link
|
TEST_NEW_REQ, '--find-links', link, '--prefer-binary'
|
||||||
], stdin=PIPE, stdout=PIPE, stderr=PIPE, env=env)
|
], stdin=PIPE, stdout=PIPE, stderr=PIPE, env=env)
|
||||||
)
|
)
|
||||||
assert mock_popen.return_value.communicate.call_count == 1
|
assert mock_popen.return_value.communicate.call_count == 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user