Updated for incremental builds and multiple environments#1
Open
ruschaaf wants to merge 4 commits intomamba-org:mainfrom
Open
Updated for incremental builds and multiple environments#1ruschaaf wants to merge 4 commits intomamba-org:mainfrom
ruschaaf wants to merge 4 commits intomamba-org:mainfrom
Conversation
* Supports linux (non-macos) * Puts all micromamba products into the build directory * Can build an environment from a spec file * Supports multiple micromamba environments * Incremental updates to existing environments * Spec files will be config dependencies, so modifying a spec file will automatically reconfigure the project next time cmake does a build Note: This also set up micromamba to install for the _host_ system (i.e. the one doing the compliation) If you are doing cross-compliation and need a micromamba environment for the _target_ system, additional modifications to this script may be needed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Updated the micromamba.cmake script with some new features:
tarto support the-Cflag (missing on Ubuntu at least)micromamba createthe first time andmicromamba installif there is an existing environmentautomatically reconfigure the project next time cmake does a build
Note: This also sets up micromamba to install for the host system (i.e. the one doing the compilation).
If you are doing cross-compilation and need a micromamba environment for the target system, additional modifications to this
script may be needed.
Purpose
The reason for these changes is that I wanted to be able to create isolated python environments within a project, and be able to have a simple manifest that listed all the python packages I needed).
micromambawas a very useful tool but I ran into some missing features for my cmake build like support for Ubuntu, and the ability to create multiple environments (for example separate environments for the main build and building test code)