Skip to content

Commit

Permalink
Merge pull request #308 from AlbertDeFusco/clone-logging
Browse files Browse the repository at this point in the history
logs when cloning
  • Loading branch information
mcg1969 committed Jan 8, 2021
2 parents bb3b2c5 + f7619c6 commit 04d0606
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,11 @@ def provide(self, requirement, context):
# _is_environment_writable leaves behind a file
# that causes the clone to fail
shutil.rmtree(destination)
conda_api.clone(destination, prefix)
print('Cloning the readonly environment {}'.format(prefix))
conda_api.clone(destination,
prefix,
stdout_callback=context.frontend.partial_info,
stderr_callback=context.frontend.partial_error)
prefix = env_spec.path(project_dir, reset=True)
break

Expand Down

0 comments on commit 04d0606

Please sign in to comment.