mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use VENV_PIP_TARGET as a target for pkg.install
if set and no target specified on the call
This commit is contained in:
parent
ea431b2c2f
commit
aaafe75759
1 changed files with 6 additions and 0 deletions
|
@ -847,6 +847,12 @@ def install(
|
|||
if build:
|
||||
cmd.extend(["--build", build])
|
||||
|
||||
# Use VENV_PIP_TARGET environment variable value as target
|
||||
# if set and no target specified on the function call
|
||||
target_env = os.environ.get("VENV_PIP_TARGET", None)
|
||||
if target is None and target_env is not None:
|
||||
target = target_env
|
||||
|
||||
if target:
|
||||
cmd.extend(["--target", target])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue