Skip to content

Commit

Permalink
Merge pull request #1590 from HEXRD/libmamba-solver
Browse files Browse the repository at this point in the history
Use the libmamba solver for packaging
  • Loading branch information
psavery authored Oct 17, 2023
2 parents 9e920a6 + 08056ed commit f23950c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ jobs:
run: |
conda activate hexrdgui-package
mkdir output
# Use libmamba as the solver for all future conda commands
export CONDA_SOLVER=libmamba
HEXRD_PACKAGE_CHANNEL=${HEXRD_PACKAGE_CHANNEL} HEXRDGUI_OUTPUT_FOLDER=output/ cpack
# This is need to ensure ~/.profile or ~/.bashrc are used so the activate
# command works.
Expand Down
1 change: 1 addition & 0 deletions packaging/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ dependencies:
- conda-build
- conda-pack
- click
- conda-libmamba-solver
2 changes: 2 additions & 0 deletions packaging/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def build_conda_pack(base_path, tmp, hexrd_package_channel, hexrdgui_output_fold
config.variant['hexrd_version'] = hexrd_version

config.CONDA_PY = '38'
config.CONDA_SOLVER = 'libmamba'
logger.info('Building hexrdgui conda package.')
CondaBuild.build(recipe_path, config=config)

Expand Down Expand Up @@ -155,6 +156,7 @@ def build_conda_pack(base_path, tmp, hexrd_package_channel, hexrdgui_output_fold
params = [
Conda.Commands.INSTALL,
'--prefix', env_prefix,
'--solver', 'libmamba',
'--override-channels',
'--channel', hexrdgui_output_folder_uri,
'--channel', hexrd_package_channel,
Expand Down

0 comments on commit f23950c

Please sign in to comment.