mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Set USE_STATIC_REQUIREMENTS and RELENV_PIP_DIR when building salt onedir with tools
This commit is contained in:
parent
8adf3ed1b9
commit
82a6deb771
1 changed files with 2 additions and 0 deletions
|
@ -319,6 +319,7 @@ def salt_onedir(
|
|||
onedir_env = pathlib.Path("artifacts", package_name)
|
||||
_check_pkg_build_files_exist(ctx, onedir_env=onedir_env, salt_archive=salt_archive)
|
||||
|
||||
os.environ["USE_STATIC_REQUIREMENTS"] = "1"
|
||||
if platform == "windows":
|
||||
ctx.run(
|
||||
"powershell.exe",
|
||||
|
@ -337,6 +338,7 @@ def salt_onedir(
|
|||
"-CICD",
|
||||
)
|
||||
else:
|
||||
os.environ["RELENV_PIP_DIR"] = "1"
|
||||
pip_bin = onedir_env / "bin" / "pip3"
|
||||
ctx.run(str(pip_bin), "install", str(salt_archive))
|
||||
if platform == "darwin":
|
||||
|
|
Loading…
Add table
Reference in a new issue