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

Install conda packages at install-time #39

Open
mvdbeek opened this issue Jun 26, 2016 · 3 comments
Open

Install conda packages at install-time #39

mvdbeek opened this issue Jun 26, 2016 · 3 comments

Comments

@mvdbeek
Copy link
Collaborator

mvdbeek commented Jun 26, 2016

@bwlang and me have decided to check if we can

  • trigger conda installation when installing from the toolshed (as opposed to when first running the tool).
  • display the resolver status (seems to already work partially in current code-base)

The API endpoint already works, although strikingly a GET causes the dependency to be resolved and installed.
r = requests.get(url+"/api/dependency_resolvers/0/requirements", params={"key": your_api_key, "name": "bowtie2==2.2.8"})

One difficulty here is that the tool shed takes the dependency information (or requirements) from the tool_dependencies.xml file (which I guess will be phased out in new tools at some point).
So if we want to do that nice "Install dependencies / requirements " the toolshed should probably return the requirements from the tool xml.

And indeed, the toolsshed does already provide that information through the API
r = requests.get(ts_url+"/api/repositories/get_repository_revision_install_info", {"name":"msp_sr_readmap_and_size_histograms", "owner":"drosofff", "changeset_revision":"d6b93af0da55"})

@bgruening
Copy link
Collaborator

Awesome! Thanks on working on this. One missing piece less :)

@mvdbeek
Copy link
Collaborator Author

mvdbeek commented Jun 26, 2016

@bgruening sure, let's use the momentum!
@bwlang this is the reponse from the TS

bwlang added a commit that referenced this issue Jun 26, 2016
working:
	- fetching valid tool list
	- identifying unique requirements

not working:
	File '/Users/langhorst/src/galaxy_hackathon/lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py', line 1138 in prepare_for_install
  [view.manager_dependency(req) for req in uniq_reqs.values()]
TypeError: manager_dependency() takes exactly 1 argument (2 given)
@mvdbeek
Copy link
Collaborator Author

mvdbeek commented Jun 28, 2016

API call to display all resolved dependencies:
pathspec = "/api/dependency_resolvers/requirements"
requests.get("%s/%s" % (url, pathspec), params = {"key": key}).text

mvdbeek pushed a commit that referenced this issue Jul 22, 2016
working:
	- fetching valid tool list
	- identifying unique requirements

not working:
	File '/Users/langhorst/src/galaxy_hackathon/lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py', line 1138 in prepare_for_install
  [view.manager_dependency(req) for req in uniq_reqs.values()]
TypeError: manager_dependency() takes exactly 1 argument (2 given)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants