from-env subcommand for creating lock files from existing environments#445
Draft
jjhelmus wants to merge 1 commit into
Draft
from-env subcommand for creating lock files from existing environments#445jjhelmus wants to merge 1 commit into
jjhelmus wants to merge 1 commit into
Conversation
✅ Deploy Preview for conda-lock ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Contributor
Author
|
An example of the new subcommand: |
Contributor
|
Thanks a lot for this! Looks very interesting. I'm very curious what is the motivation and what this accomplishes that |
Contributor
|
I like this approach over And if the |
Add a from-env subcommand which creates a lock file from an existing conda environment. This is accomplished by running `conda env export` to obtain the location of the environment and channels. The conda-meta directory of the environment is then read to obtain information on the installed packages.
3d2717c to
5d40786
Compare
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.
This is a rough version of a new
from-envsubcommand that creates a lock file from an existing conda environment.I wanted to submit the change in this form to see if there was interest in such a feature and to collected feedback on the approach. If this is something that would be accepted into conda-lock, I'd be happy to continue working on the change to get it into a more complete state.