Skip to content

Use conda run for conda environments for running python files and possibly installation #18479

Closed
@karrtikr

Description

@karrtikr

Seems like this bit was missed:
image

Feel free to also add it in the iteration planning board. Note we should not be using the OUTPUT_MARKER_SCRIPT for running/debugging files, so add an option in this API

public async getRunPythonArgs(env: CondaEnvInfo): Promise<string[] | undefined> {
const condaVersion = await this.getCondaVersion();
if (condaVersion && lt(condaVersion, CONDA_RUN_VERSION)) {
return undefined;
}
const args = [];
if (env.name) {
args.push('-n', env.name);
} else {
args.push('-p', env.prefix);
}
return [this.command, 'run', ...args, '--no-capture-output', 'python', OUTPUT_MARKER_SCRIPT];
}
to skip that.

cc/ @karthiknadig

Metadata

Metadata

Assignees

Labels

area-environmentsFeatures relating to handling interpreter environmentsfeature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions