mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
install using pip as a module
This commit is contained in:
parent
3b662a5451
commit
9ba8bb6c44
1 changed files with 12 additions and 6 deletions
|
@ -263,11 +263,9 @@ def onedir_dependencies(
|
|||
|
||||
if platform == "windows":
|
||||
python_bin = dest / "Scripts" / "python"
|
||||
pip_bin = dest / "Scripts" / "pip"
|
||||
no_binary = []
|
||||
else:
|
||||
python_bin = dest / "bin" / "python3"
|
||||
pip_bin = dest / "bin" / "pip3"
|
||||
no_binary = ["--no-binary=':all:'"]
|
||||
|
||||
version_info = ctx.run(
|
||||
|
@ -282,10 +280,18 @@ def onedir_dependencies(
|
|||
).resolve()
|
||||
_check_pkg_build_files_exist(ctx, requirements_file=requirements_file)
|
||||
|
||||
ctx.run(str(pip_bin), "install", "-U", "wheel")
|
||||
ctx.run(str(pip_bin), "install", "-U", "pip>=22.3.1,<23.0")
|
||||
ctx.run(str(pip_bin), "install", "-U", "setuptools>=65.6.3,<66")
|
||||
ctx.run(str(pip_bin), "install", "-r", str(requirements_file), *no_binary)
|
||||
ctx.run(str(python_bin), "-m", "pip", "install", "-U", "wheel")
|
||||
ctx.run(str(python_bin), "-m", "pip", "install", "-U", "pip>=22.3.1,<23.0")
|
||||
ctx.run(str(python_bin), "-m", "pip", "install", "-U", "setuptools>=65.6.3,<66")
|
||||
ctx.run(
|
||||
str(python_bin),
|
||||
"-m",
|
||||
"pip",
|
||||
"install",
|
||||
"-r",
|
||||
str(requirements_file),
|
||||
*no_binary,
|
||||
)
|
||||
|
||||
|
||||
@build.command(
|
||||
|
|
Loading…
Add table
Reference in a new issue