-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add --use_cached_dependency_manager option #612
Add --use_cached_dependency_manager option #612
Conversation
Would there be any harm in just making this the default for Planemo and not having an option for it? Ping @mvdbeek |
I don't think so, since it falls back to the old behaviour anyway if no cached environment exists. |
Though this should probably work with |
Damn, should have tested it more, can't get the thing to work on my setup |
I'm stuck on this strange error, does it evoke anything to you?
I launch planemo like this with a clean planemo virtualenv (code from this PR), and empty ~/.planemo:
|
Sounds familiar indeed, I'm afraid the upload tool depends on samtools -- |
Possibly related: I think the issue at core is how to deal with tools that expect galaxy's PYTHONPATH to come first. |
We've never observed this breaking though before right? I don't think the samtools recipe currently depends on Python at all in Conda - so why is activating the environment affecting upload? I don't get it at all... I'll let you know if I think of something though. |
Ok, the strange error is gone, I think I had messed up my conda install |
I just fixed the way the option is passed to galaxy. Not sure if it's in the best place in the code though Now, as the cache is not built on tool install the planemo option has no effect. The --auto_install doesn't seem to change anything |
I'm divided on that issue, maybe that is a good idea, but my thinking is that (at least by default), you wouldn't want to have a long-running and slightly fragile process blocking other conda activities. |
Ok, I have an ugly hack for conda_install to create the cache, but the question now is: where can I store the cache? The galaxy instance does not exist yet when we launch conda_install... |
I feel like is the cache is enabled and auto_install is on (however it is on) - the dependencies should be installed into a cache automatically. If this is not how it works - I guess that should be a Galaxy issue? I understand the worry about a flakey process and loops and stuff - but aren't those all the same worries that one would have with auto_install regardless? Does adding the cache make it worse? |
Oh yes I think you're right, I don't think it makes it worse than not caching it Here's a PR for galaxy: |
Sorry for the lag on this, I forgot the dealing with the Galaxy side alone wasn't enough to finish this off. |
A small PR to support the new --use_cached_dependency_manager option introduced in galaxyproject/galaxy/pull/3106