Skip to content

Commit

Permalink
Report on progress when running (fix #11)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Apr 14, 2022
1 parent abbd262 commit 7d56e9a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# conda-stage

## Version 0.2.0-9000 [2022-04-13]
## Version 0.2.0-9001 [2022-04-14]

* ...
New Features:

* Report on progress when running `conda-pack`.


## Version 0.2.0 [2022-04-13]
Expand Down
7 changes: 5 additions & 2 deletions bin/conda-stage
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
### conda-stage --path="${stage_path}"
### source "${stage_path}/bin/activate"
###
### Version: 0.2.0-9000
### Version: 0.2.0-9001
### Copyright: Henrik Bengtsson (2022)
### License: ISC

Expand Down Expand Up @@ -266,7 +266,10 @@ if [[ "${action}" == "stage" ]]; then
## Create conda-pack file?
if [[ ! -f "${conda_pack_cache_file}" ]]; then
minfo "Packaging conda environment ..."
conda-pack --quiet --output="${conda_pack_cache_file}"
## WORKAROUND: conda-pack outputs "progress" to stdout, not stderr
## (https://github.com/conda/conda-pack/issues/217). Because of this,
## we direct stdout to stderr here.
1>&2 conda-pack --output="${conda_pack_cache_file}"
fi
mdebug "- Packaged conda environment: $(file_info "${conda_pack_cache_file}")"

Expand Down

0 comments on commit 7d56e9a

Please sign in to comment.