Skip to content

Commit 912f8cc

Browse files
committed
fix: Use mamba in mulled-build
1 parent cecf50c commit 912f8cc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

bioconda_utils/involucro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
exec involucro \
44
-set POSTINSTALL='create-env --conda=: /usr/local' \
5+
-set PREINSTALL='conda() { mamba "${@}" ; }' \
56
"${@}"

bioconda_utils/pkg_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ def test_package(
159159
# galaxy-lib always downloads involucro, unless it's in cwd or its path is explicitly given.
160160
# We inject a POSTINSTALL to the involucro command with a small wrapper to
161161
# create activation / entrypoint scripts for the container.
162+
# We also inject a PREINSTALL to alias conda to mamba so `mamba install` is
163+
# used instead of `conda install` in the container builds.
162164
involucro_path = os.path.join(os.path.dirname(__file__), 'involucro')
163165
if not os.path.exists(involucro_path):
164166
raise RuntimeError('internal involucro wrapper missing')

0 commit comments

Comments
 (0)