Skip to content

Commit

Permalink
Try using libmamba solver for conda packaging
Browse files Browse the repository at this point in the history
It is [officially supported by conda](https://www.anaconda.com/blog/conda-is-fast-now),
and it is significantly faster.

Before this commit, Windows packaging usually takes 1 hour and 15 minutes. Mac packaging
usually takes about 45 minutes. Linux usually takes about 35 minutes.

We'll see if there are any noticeable differences.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
  • Loading branch information
psavery committed Oct 10, 2023
1 parent 4bb01a1 commit 7aca06d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
- name: Install build requirements
run: |
conda activate hexrd
# Change default solver to be libmamba, so that it runs much faster
conda install -n base -c conda-forge conda-libmamba-solver
conda config --env --set solver libmamba
# FIXME: downgrade urllib3 until this issue is fixed:
# https://github.com/Anaconda-Platform/anaconda-client/issues/654
conda install --override-channels -c conda-forge anaconda-client conda-build conda 'urllib3<2.0.0'
Expand Down

0 comments on commit 7aca06d

Please sign in to comment.