Restore the cached environments for now ... better to completely eliminate them later

This commit is contained in:
mvdbeek
2017-01-08 19:19:02 +01:00
parent 0e509a98ed
commit ad92bbf9be
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -142,6 +142,8 @@ class ToolsController( BaseAPIController, UsesVisualizationMixin ):
"""
tool = self._get_tool(id)
tool._view.install_dependencies(None, tool.requirements)
if kwds.get('build_dependency_cache'):
tool.build_dependency_cache(**kwds)
# TODO: rework resolver install system to log and report what has been done.
# _view.install_dependencies should return a dict with stdout, stderr and success status
return tool.tool_requirements_status
@@ -911,6 +911,8 @@ class InstallRepositoryManager( object ):
if tool and tool.requirements not in installed_requirements:
installed_requirements.append(tool.requirements)
self._view.install_dependencies(None, tool.requirements)
if self.app.config.use_cached_dependency_manager:
tool.build_dependency_cache()
if install_tool_dependencies and tool_shed_repository.tool_dependencies and 'tool_dependencies' in metadata:
work_dir = tempfile.mkdtemp( prefix="tmp-toolshed-itsr" )
# Install tool dependencies.