|
16
|
1 <?xml version="1.0"?>
|
|
|
2 <tool_dependency>
|
|
|
3 <package name="readline" version="6.2">
|
|
|
4 <repository changeset_revision="1301ec7705a8" name="package_readline_6_2" owner="boris" prior_installation_required="True" toolshed="http://testtoolshed.g2.bx.psu.edu/" />
|
|
|
5 </package>
|
|
18
|
6 <package name="ape" version="3.0-8">
|
|
|
7 <repository changeset_revision="60624d152d06" name="package_ape_3_0" owner="boris" prior_installation_required="True" toolshed="http://testtoolshed.g2.bx.psu.edu/" />
|
|
16
|
8 </package>
|
|
|
9 <package name="rpy2" version="2.2.6">
|
|
|
10 <install version="1.0">
|
|
|
11 <actions>
|
|
|
12 <action type="download_by_url">https://pypi.python.org/packages/source/r/rpy2/rpy2-2.2.6.tar.gz</action>
|
|
|
13 <action type="set_environment_for_install">
|
|
|
14 <repository changeset_revision="1301ec7705a8" name="package_readline_6_2" owner="boris" toolshed="http://testtoolshed.g2.bx.psu.edu/">
|
|
|
15 <package name="readline" version="6.2" />
|
|
|
16 </repository>
|
|
18
|
17 <repository changeset_revision="60624d152d06" name="package_ape_3_0" owner="boris" toolshed="http://testtoolshed.g2.bx.psu.edu/">
|
|
|
18 <package name="ape" version="3.0-8" />
|
|
|
19 </repository>
|
|
16
|
20 </action>
|
|
|
21 <action type="make_directory">$INSTALL_DIR/lib/python</action>
|
|
19
|
22 <action type="shell_command">export R_HOME=$R_HOME && export R_LIBS=$R_LIBS && export PATH=$PATH &&export PYTHONPATH=$PYTHONPATH:$INSTALL_DIR/lib/python &&python setup.py install --home $INSTALL_DIR --install-scripts $INSTALL_DIR/bin</action>
|
|
16
|
23 <action type="set_environment">
|
|
|
24 <environment_variable action="set_to" name="R_HOME">$ENV[R_HOME]</environment_variable>
|
|
|
25 <environment_variable action="set_to" name="R_LIBS">$ENV[R_LIBS]</environment_variable>
|
|
17
|
26 <environment_variable action="set_to" name="PATH">$ENV[PATH]</environment_variable>
|
|
16
|
27 <environment_variable action="prepend_to" name="PYTHONPATH">$INSTALL_DIR/lib/python</environment_variable>
|
|
|
28 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
|
|
|
29 </action>
|
|
|
30 </actions>
|
|
|
31 </install>
|
|
|
32 <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.
|
|
|
33 Python version 2.5 or greater, as well as R-2.8.0 or greater are required.
|
|
|
34 When compiling R from source, do not forget to specify –enable-R-shlib at the ./configure step.
|
|
|
35 gcc-4.4 is used for compiling the C parts on Linux.
|
|
|
36 If installing from a linux distribution, the Python-dev package will obviously be required to compile rpy2
|
|
|
37 On OS X, the XCode tools will be required in order to compile rpy2.</readme>
|
|
|
38 </package>
|
|
|
39 </tool_dependency>
|