0
|
1 <?xml version="1.0"?>
|
|
2 <tool_dependency>
|
|
3 <package name="numpy" version="1.7.1">
|
|
4 <repository changeset_revision="c75482be1d3a" name="package_numpy_1_7" owner="iuc" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" />
|
|
5 </package>
|
|
6 <package name="freetype" version="2.4.11">
|
|
7 <repository changeset_revision="8761091302c4" name="package_freetype_2_4" owner="iuc" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" />
|
|
8 </package>
|
|
9 <package name="matplotlib" version="1.2.1">
|
|
10 <install version="1.0">
|
|
11 <actions>
|
|
12 <!-- first action is always downloading -->
|
|
13 <action type="download_by_url">http://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.2.1/matplotlib-1.2.1.tar.gz</action>
|
|
14
|
|
15 <!-- populate the environment variables from the dependend repos -->
|
|
16 <action type="set_environment_for_install">
|
|
17 <repository changeset_revision="c75482be1d3a" name="package_numpy_1_7" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu">
|
|
18 <package name="numpy" version="1.7.1" />
|
|
19 </repository>
|
|
20 <repository changeset_revision="8761091302c4" name="package_freetype_2_4" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu">
|
|
21 <package name="freetype" version="2.4.11" />
|
|
22 </repository>
|
|
23 </action>
|
|
24
|
|
25 <!-- install matplotlib -->
|
|
26 <action type="make_directory">$INSTALL_DIR/lib/python</action>
|
|
27 <action type="shell_command">
|
|
28 export PYTHONPATH=$PYTHONPATH:$INSTALL_DIR/lib/python:$PYTHONPATH_NUMPY &&
|
|
29 export CPLUS_INCLUDE_PATH=$FREETYPE_INCLUDE_DIR:$FREETYPE_INCLUDE_DIR/freetype2/ &&
|
|
30 export LIBRARY_PATH=$FREETYPE_LIB_DIR &&
|
|
31 python setup.py install --install-lib $INSTALL_DIR/lib/python --install-scripts $INSTALL_DIR/bin
|
|
32 </action>
|
|
33 <action type="set_environment">
|
|
34 <environment_variable action="append_to" name="PYTHONPATH">$INSTALL_DIR/lib/python</environment_variable>
|
|
35 <environment_variable action="append_to" name="PYTHONPATH">$ENV[PYTHONPATH_NUMPY]</environment_variable>
|
|
36 <environment_variable action="prepend_to" name="PATH">$ENV[PATH_NUMPY]</environment_variable>
|
|
37 <environment_variable action="set_to" name="PYTHONPATH_MATPLOTLIB">$INSTALL_DIR/lib/python</environment_variable>
|
|
38 </action>
|
|
39 </actions>
|
|
40 </install>
|
|
41 <readme>Compiling matplotlib requires a C compiler (typically gcc) and libpng.</readme>
|
|
42 </package>
|
|
43 </tool_dependency>
|