-
Notifications
You must be signed in to change notification settings - Fork 423
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
Allow to easily set up a dev environment for a given recipe #2791
Comments
Seems reasonable, but this does not generalize well at all to recipes with multiple outputs. How would you propose handling outputs? Ignore them? Only handle top-level dependencies? Is there any reason why this is much better than just utilizing the build/host/test envs that are already created by the build process (and which are left if a build fails or is aborted)? |
I do not use multiple outputs and don't have a good intuition for how they should work. Perhaps ignore by default and allow specifying the output-specific requirements with the output name as a key? The idea is that I'd like to use the build environments as development environments where developers should build and test the code by default. In this way, the final binaries would be prepared by conda build, but the development environment isn't much different. Creating those envs from a cancelled build is certainly possible, but rather cumbersome. |
Sorry, this is going to be complicated to generalize, I think. If you only use old-style recipes (ones that only require conda-build 2.0), this is feasible. With 2.1, you have outputs to deal with. With 3.0, you also have the host env to deal with. I think we can just ignore the outputs, since they are nominally supposed to be only for packaging (though in practice they often do much more). As for build/host, it's probably ok to just merge them together for development purposes. This goes back to |
Hi there, thank you for your contribution! This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment. Thanks! |
Please see:
conda/conda#7090
Actual Behavior
I would like to have a way to quickly get an environment equivalent to the one conda build would set for a given recipe. This now can be done by either looking at the dependencies one by one (and then searching internet for what is the convoluted name of the conda package that the compilers resolve to) or by somehow cloning the environment of an already build recipe (except that I tried now and couldn't find a way to actually keep the build environment). Assuming finding the build env was possible, one could
and similarly the test env.
Expected Behavior
It would be nice to have a quick way of doing something like the commands above do for the build, test and run dependencies. A possible interface is:
That outputs a list of dependencies that can be understood by
conda install --file
. It would be even nicer ifconda install --file
worked in a pipe, so one could do:The text was updated successfully, but these errors were encountered: