Update conda.py

This commit is contained in:
Jonas Haag 2022-07-08 13:43:22 +02:00 committed by GitHub
parent 98bb7e6630
commit 54b88e078a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,7 @@ def install_environment(
env_dir = prefix.path(directory) env_dir = prefix.path(directory)
with clean_path_on_failure(env_dir): with clean_path_on_failure(env_dir):
cmd_output_b( cmd_output_b(
conda_exe, 'env', 'create', '-p', env_dir, '--file', conda_exe, *(['env'] if 'micro' not in conda_exe else []), 'create', '-p', env_dir, '--file',
'environment.yml', cwd=prefix.prefix_dir, 'environment.yml', cwd=prefix.prefix_dir,
) )
if additional_dependencies: if additional_dependencies: