Skip to content

Add External Dependency Resolution #51

@TyTodd

Description

@TyTodd

We can use the following method to dynamically install and use third party libraries and packges during AutoProgram. We should also add a flag to from_precompiled that specifies whether we should try to install third party modules or assume they are already imported.

import importlib
import subprocess
import sys

cmd = ["uv", "pip", "install", "-r", "scratch/pyproject.toml"]
subprocess.run(cmd, check=True)
importlib.invalidate_caches()
import dotenv
import humanize

print(humanize.intcomma(12345))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions