Skip to content

Better error when using conda without an environment file #9008

@stsewd

Description

@stsewd

In this build https://readthedocs.org/projects/test-builds/builds/16326429/ I'm using coda, but I didn't define the environment file in the config file, so it gave me a generic error

The error came from

inputfile = codecs.open(
os.path.join(
self.checkout_path,
self.config.conda.environment,
),
encoding='utf-8',
mode='r',
)

We should probably require using conda.environment when using build.tools.python = conda

Metadata

Metadata

Assignees

Labels

AcceptedAccepted issue on our roadmapImprovementMinor improvement to code

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions