Skip to content

Commit

Permalink
fix: Use mamba in mulled-build
Browse files Browse the repository at this point in the history
  • Loading branch information
mbargull committed Oct 9, 2022
1 parent cecf50c commit 912f8cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions bioconda_utils/involucro
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

exec involucro \
-set POSTINSTALL='create-env --conda=: /usr/local' \
-set PREINSTALL='conda() { mamba "${@}" ; }' \
"${@}"
2 changes: 2 additions & 0 deletions bioconda_utils/pkg_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ def test_package(
# galaxy-lib always downloads involucro, unless it's in cwd or its path is explicitly given.
# We inject a POSTINSTALL to the involucro command with a small wrapper to
# create activation / entrypoint scripts for the container.
# We also inject a PREINSTALL to alias conda to mamba so `mamba install` is
# used instead of `conda install` in the container builds.
involucro_path = os.path.join(os.path.dirname(__file__), 'involucro')
if not os.path.exists(involucro_path):
raise RuntimeError('internal involucro wrapper missing')
Expand Down

0 comments on commit 912f8cc

Please sign in to comment.