Skip to content

Wrap-and-run all in one? #33

@BrenBarn

Description

@BrenBarn

Is there any possibility for exec-wrappers to provide an "instant exec" mode in which it does the wrapping and executes the command all at once? exec-wrappers is an interesting solution to the headaches of activating conda environments from things like IDEs, but it still leaves the chore of having to go around creating wrappers for each environment. Would it be possible to have something like run-wrapped -t conda --conda-env-dir ~/miniconda/envs/test python -c "import sys; print(sys.executable)", which would simply apply a wrapper and immediately use it to execute the given command? This would then be like what conda run is supposed to be: a tool to run a command in a conda environment with a single command line, not requiring a separate user-interactive step for activation or wrapper-creating. Or would it be too slow to be useful?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions