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