Skip to content

Commit

Permalink
use mamba to build env in binder docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Bultako committed Sep 23, 2021
1 parent 1b95d53 commit 4a220b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions binder.py
Expand Up @@ -13,12 +13,12 @@
content = yaml.safe_load(stream)

for chan in content['channels']:
print("RUN conda config --add channels {}".format(chan))
conda.cli.main('conda', 'config', '--add', 'channels', chan)
print("RUN mamba config --add channels {}".format(chan))
conda.cli.main('mamba', 'config', '--add', 'channels', chan)

for pack in content['dependencies']:
if isinstance(pack, str):
print("RUN conda install -q -y {}".format(pack))
print("RUN mamba install -q -y {}".format(pack))
conda.cli.main('conda', 'install', '-y', '-q', pack)
else:
print("RUN pip install {}".format(pack['pip'][0]))
Expand Down

0 comments on commit 4a220b4

Please sign in to comment.