From afeefb8552c566af5f72fe3318e980216094c7cd Mon Sep 17 00:00:00 2001 From: Pris Nasrat Date: Fri, 10 Jan 2025 07:29:27 -0500 Subject: [PATCH] Only invoke vendor_rust if network isolation set See: #529 While improving the vendor logic for more complex source cases this fixes building cryptography if network isolation turned off Signed-off-by: Pris Nasrat --- src/fromager/sources.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fromager/sources.py b/src/fromager/sources.py index 8ca916bf..740e2931 100644 --- a/src/fromager/sources.py +++ b/src/fromager/sources.py @@ -412,7 +412,8 @@ def prepare_new_source( req=req, sdist_root_dir=source_root_dir, ) - vendor_rust.vendor_rust(req, source_root_dir) + if ctx.network_isolation: + vendor_rust.vendor_rust(req, source_root_dir) @metrics.timeit(description="build sdist")