File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -851,7 +851,7 @@ async def _create_single_client_dependency_mount(
851851 print (f"📦 Building { mount_name } ." ) # noqa: T201
852852 requirements = os .path .join (os .path .dirname (__file__ ), f"builder/{ builder_version } .txt" )
853853 cmd = [
854- " uv" ,
854+ os . environ . get ( "MODAL_UV_PATH" , " uv") ,
855855 "pip" ,
856856 "install" ,
857857 "--strict" ,
@@ -867,6 +867,11 @@ async def _create_single_client_dependency_mount(
867867 "--python" ,
868868 python_version ,
869869 ]
870+ # A directory holding wheels for every pin in the requirements file, for
871+ # building mounts where no package index is reachable.
872+ find_links = os .environ .get ("MODAL_BUILDER_WHEEL_DIR" )
873+ if find_links :
874+ cmd += ["--no-index" , "--find-links" , find_links ]
870875 # Retry uv pip install on transient failures (e.g. network blips,
871876 # resource contention). uv exits with non-zero on recoverable errors
872877 # like rate limits or connection resets.
You can’t perform that action at this time.
0 commit comments