Set USE_STATIC_REQUIREMENTS and RELENV_PIP_DIR when building salt onedir with tools

This commit is contained in:
MKLeb 2023-03-08 13:00:57 -05:00 committed by Megan Wilhite
parent 8adf3ed1b9
commit 82a6deb771

View file

@ -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":