Get more information when installing packaging dependencies from source

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-03-21 15:03:36 +00:00 committed by Pedro Algarvio
parent 3f6f5a6078
commit 18babefe14

View file

@ -253,12 +253,18 @@ def onedir_dependencies(
create(dest, arch=arch, version=python_version)
install_args = ["-v"]
if platform == "windows":
python_bin = dest / "Scripts" / "python"
no_binary = []
else:
python_bin = dest / "bin" / "python3"
no_binary = ["--no-binary=:all:"]
install_args.extend(
[
"--use-pep517",
"--no-cache-dir",
"--no-binary=:all:",
]
)
version_info = ctx.run(
str(python_bin),
@ -285,9 +291,9 @@ def onedir_dependencies(
"-m",
"pip",
"install",
*install_args,
"-r",
str(requirements_file),
*no_binary,
)