Mercurial > repos > boris > package_rpy2_2_2
changeset 11:d77b02348ed8 draft
Uploaded
author | boris |
---|---|
date | Thu, 06 Jun 2013 16:26:01 -0400 |
parents | fe06be027248 |
children | fb77c4ed8fa5 |
files | tool_dependencies.xml |
diffstat | 1 files changed, 39 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_dependencies.xml Thu Jun 06 16:26:01 2013 -0400 @@ -0,0 +1,39 @@ +<?xml version="1.0"?> +<tool_dependency> + <package name="readline" version="6.2"> + <repository changeset_revision="7c94649a1f86" name="package_readline_6_2" owner="boris" prior_installation_required="True" toolshed="http://testtoolshed.g2.bx.psu.edu/" /> + </package> + <package name="R" version="2.15.0"> + <repository changeset_revision="0eb8a25c2c00" name="package_r_2_15" owner="boris" prior_installation_required="True" toolshed="http://testtoolshed.g2.bx.psu.edu/" /> + </package> + <package name="rpy2" version="2.2.6"> + <install version="1.0"> + <actions> + <action type="download_by_url">https://pypi.python.org/packages/source/r/rpy2/rpy2-2.2.6.tar.gz</action> + <action type="set_environment_for_install"> + <repository changeset_revision="7c94649a1f86" name="package_readline_6_2" owner="boris" toolshed="http://testtoolshed.g2.bx.psu.edu/"> + <package name="readline" version="6.2" /> + </repository> + <repository changeset_revision="0eb8a25c2c00" name="package_r_2_15" owner="boris" toolshed="http://testtoolshed.g2.bx.psu.edu/"> + <package name="R" version="2.15.0" /> + </repository> + </action> + <action type="make_directory">$INSTALL_DIR/lib/python</action> + <action type="shell_command">export R_HOME=$R_HOME && export R_LIBS=$R_LIBS && + export PYTHONPATH=$PYTHONPATH:$INSTALL_DIR/lib/python &&python setup.py install --home $INSTALL_DIR --install-scripts $INSTALL_DIR/bin</action> + <action type="set_environment"> + <environment_variable action="set_to" name="R_HOME">$ENV[R_HOME]</environment_variable> + <environment_variable action="set_to" name="R_LIBS">$ENV[R_LIBS]</environment_variable> + <environment_variable action="prepend_to" name="PYTHONPATH">$INSTALL_DIR/lib/python</environment_variable> + <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable> + </action> + </actions> + </install> + <readme>In order to upgrade one will have to first remove older installed rpy2 packages then and only then install the recent version of rpy2 wished. + Python version 2.5 or greater, as well as R-2.8.0 or greater are required. + When compiling R from source, do not forget to specify –enable-R-shlib at the ./configure step. + gcc-4.4 is used for compiling the C parts on Linux. + If installing from a linux distribution, the Python-dev package will obviously be required to compile rpy2 + On OS X, the XCode tools will be required in order to compile rpy2.</readme> + </package> +</tool_dependency>