Skip to content

Commit aecf58a

Browse files
dflemstrmodal-bot
authored andcommitted
Build the client dependency mounts from Bazel-provided wheels and uv (#56870)
GitOrigin-RevId: 5aa7d3f4a4f716673c5b5bbf1331fac34920e03b
1 parent 2cd2113 commit aecf58a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

py/modal/mount.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)