Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the libmamba solver for packaging #1590

Merged
merged 2 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading