Skip to content

move client dep mount to /__modal/deps #3186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modal_global_objects/mounts/modal_client_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
)
from modal_proto import api_pb2

REMOTE_PACKAGES_PATH = "/__modal/.client_pkgs"
REMOTE_PACKAGES_PATH = "/__modal/deps"
REMOTE_SITECUSTOMIZE_PATH = "/pkg/sitecustomize.py"

SITECUSTOMIZE_CONTENT = """
SITECUSTOMIZE_CONTENT = f"""
# This file is automatically generated by Modal.
# It ensures that Modal's python dependencies are available in the Python PATH,
# while prioritizing user-installed packages.
import sys; sys.path.append('/__modal/.client_pkgs')
import sys; sys.path.append('{REMOTE_PACKAGES_PATH}')
""".strip()

def create_client_dependencies(
Expand Down
Loading