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")