# HG changeset patch
# User fubar
# Date 1395310196 14400
# Node ID 824d21b5c7739554cbdc6f368327739f2bd84f9d
# Parent 43ab59672f786847202680f9c0db027a4679561a
Uploaded
diff -r 43ab59672f78 -r 824d21b5c773 rgToolFactory.py
--- a/rgToolFactory.py Thu Mar 20 06:04:42 2014 -0400
+++ b/rgToolFactory.py Thu Mar 20 06:09:56 2014 -0400
@@ -90,7 +90,8 @@
debug = False
toolFactoryURL = 'https://bitbucket.org/fubar/galaxytoolfactory'
-# if we do html we need these dependencies
+# if we do html we need these dependencies specified in a tool_dependencies.xml file and referred to in the generated
+# tool xml
toolhtmldepskel = """
@@ -105,6 +106,11 @@
"""
+protorequirements = """
+ ghostscript
+ graphicsmagick
+ """
+
def timenow():
"""return current time as a string
"""
@@ -233,6 +239,7 @@
"""
newXML="""
%(tooldesc)s
+ %(requirements)s
%(command)s
%(inputs)s
@@ -275,6 +282,9 @@
"""
xdict = {}
+ xdict['requirements'] = ''
+ if self.opts.make_HTML:
+ xdict['requirements'] = protorequirements
xdict['tool_version'] = self.opts.tool_version
xdict['test1Input'] = self.test1Input
xdict['test1HTML'] = self.test1HTML