From 6af1eb0eb7ca4824a2ab7d4d58cddf0c5fb0d524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gr=C3=BCning?= Date: Wed, 17 Sep 2014 10:27:56 +0000 Subject: [PATCH] Add $INSTALL_DIR to PERL5LIB and PATH before starting to install libraries. A few packages need this in order to recognise previous installed packages. --- .../galaxy_install/tool_dependencies/recipe/step_handler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tool_shed/galaxy_install/tool_dependencies/recipe/step_handler.py b/lib/tool_shed/galaxy_install/tool_dependencies/recipe/step_handler.py index 6d64e9c96a0..e1ca6e59a2f 100644 --- a/lib/tool_shed/galaxy_install/tool_dependencies/recipe/step_handler.py +++ b/lib/tool_shed/galaxy_install/tool_dependencies/recipe/step_handler.py @@ -1105,6 +1105,8 @@ class SetupPerlEnvironment( Download, RecipeStep ): # If set to a true value then MakeMaker's prompt function will always # return the default without waiting for user input. cmd = '''PERL_MM_USE_DEFAULT=1; export PERL_MM_USE_DEFAULT; ''' + cmd += 'export PERL5LIB=$INSTALL_DIR/lib/perl5:$PERL5LIB;' + cmd += 'export PATH=$INSTALL_DIR/bin:$PATH;' if perl_package.find( '://' ) != -1: # We assume a URL to a gem file. url = perl_package