commit/galaxy-central: BjoernGruening: cleanup & bugfix for R environment
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/232ef8122d54/ Changeset: 232ef8122d54 Branch: next-stable User: BjoernGruening Date: 2013-10-23 14:39:49 Summary: cleanup & bugfix for R environment Affected #: 2 files diff -r a00d08d235436ae6b940d5b2871c75011c50d3e3 -r 232ef8122d540d9a232b4f29e0a9d907ffaeae13 lib/tool_shed/galaxy_install/tool_dependencies/fabric_util.py --- a/lib/tool_shed/galaxy_install/tool_dependencies/fabric_util.py +++ b/lib/tool_shed/galaxy_install/tool_dependencies/fabric_util.py @@ -341,10 +341,13 @@ elif action_type == 'setup_r_environment': # setup an R environment # <action type="setup_r_environment"> - # <r_base name="package_r_3_0_1" owner="bgruening" /> + # <repository name="package_r_3_0_1" owner="bgruening"> + # <package name="R" version="3.0.1" /> + # </repository> + # <!-- allow installing an R packages --> + # <package>https://github.com/bgruening/download_store/raw/master/DESeq2-1_0_18/BiocGenerics_0.6.0.tar.gz</package> # </action> - # allow downloading and installing an R package - # <package>https://github.com/bgruening/download_store/raw/master/DESeq2-1_0_18/BiocGenerics_0.6.0.tar.gz</package> + if action_dict.get( 'env_shell_file_paths', False ): install_environment.add_env_shell_file_paths( action_dict[ 'env_shell_file_paths' ] ) else: @@ -371,8 +374,9 @@ # R libraries are installed to $INSTALL_DIR (install_dir), we now set the R_LIBS path to that directory # TODO: That code is used a lot for the different environments and should be refactored, once the environments are integrated modify_env_command_dict = dict( name="R_LIBS", action="prepend_to", value=install_dir ) - modify_env_command = td_common_util.create_or_update_env_shell_file( install_dir, modify_env_command_dict ) - return_code = handle_command( app, tool_dependency, install_dir, modify_env_command ) + env_entry, env_file = td_common_util.create_or_update_env_shell_file( install_dir, modify_env_command_dict ) + return_code = file_append( env_entry, env_file, skip_if_contained=True, make_executable=True ) + if return_code: return else: diff -r a00d08d235436ae6b940d5b2871c75011c50d3e3 -r 232ef8122d540d9a232b4f29e0a9d907ffaeae13 lib/tool_shed/galaxy_install/tool_dependencies/install_util.py --- a/lib/tool_shed/galaxy_install/tool_dependencies/install_util.py +++ b/lib/tool_shed/galaxy_install/tool_dependencies/install_util.py @@ -613,10 +613,13 @@ action_dict[ 'configure_opts' ] = configure_opts elif action_type == 'setup_r_environment': # setup an R environment - # <action type="setup_r_environment" name="package_r_3_0_1" owner="bgruening"> - # <package>https://github.com/bgruening/download_store/raw/master/DESeq2-1_0_18/BiocGenerics_0.6.0.tar.gz</package> + # <action type="setup_r_environment"> + # <repository name="package_r_3_0_1" owner="bgruening"> + # <package name="R" version="3.0.1" /> + # </repository> + # <!-- allow installing an R packages --> + # <package>https://github.com/bgruening/download_store/raw/master/DESeq2-1_0_18/BiocGenerics_0.6.0.tar.gz</package> # </action> - env_shell_file_paths = td_common_util.get_env_shell_file_paths( app, action_elem.find('repository') ) all_env_shell_file_paths.extend( env_shell_file_paths ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org