mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 14:21:26 -07:00
Fix ansible-test python and pip executable search.
This commit is contained in:
parent
dd37857884
commit
a8487feb70
14 changed files with 81 additions and 75 deletions
|
@ -9,6 +9,8 @@ from lib.util import (
|
|||
CommonConfig,
|
||||
is_shippable,
|
||||
docker_qualify_image,
|
||||
find_python,
|
||||
generate_pip_command,
|
||||
)
|
||||
|
||||
from lib.metadata import (
|
||||
|
@ -67,6 +69,20 @@ class EnvironmentConfig(CommonConfig):
|
|||
if self.delegate:
|
||||
self.requirements = True
|
||||
|
||||
@property
|
||||
def python_executable(self):
|
||||
"""
|
||||
:rtype: str
|
||||
"""
|
||||
return find_python(self.python_version)
|
||||
|
||||
@property
|
||||
def pip_command(self):
|
||||
"""
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return generate_pip_command(self.python_executable)
|
||||
|
||||
|
||||
class TestConfig(EnvironmentConfig):
|
||||
"""Configuration common to all test commands."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue