Mercurial > repos > bgruening > package_matplotlib_1_2
changeset 1:b895cf27fcdd
Uploaded
author | bgruening |
---|---|
date | Fri, 12 Apr 2013 11:50:32 -0400 |
parents | 2c5354067ef0 |
children | e129aeb73021 |
files | tool_dependencies.xml |
diffstat | 1 files changed, 18 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tool_dependencies.xml Fri Apr 12 10:15:41 2013 -0400 +++ b/tool_dependencies.xml Fri Apr 12 11:50:32 2013 -0400 @@ -1,16 +1,31 @@ <tool_dependency> - <package name="numpy" version="1.7.0"> + <!-- ToDo: numpy dependency, install numpy beforehand. + install freetype + http://downloads.sourceforge.net/project/freetype/freetype2/2.4.11/freetype-2.4.11.tar.bz2 + export CPLUS_INCLUDE_PATH=/home/bag/test/freetype/bin/include:/home/bag/test/freetype/bin/include/freetype2/ + export LIBRARY_PATH=/home/bag/test/freetype/bin/lib/ + --> + <package name="matplotlib" version="1.2.1"> <install version="1.0"> <actions> <action type="download_by_url">https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.2.1/matplotlib-1.2.1.tar.gz</action> + <action type="shell_command">wget http://downloads.sourceforge.net/project/freetype/freetype2/2.4.11/freetype-2.4.11.tar.bz2</action> + <action type="shell_command">tar xfvj freetype-2.4.11.tar.bz2 && + cd freetype-2.4.11 && + ./configure --prefix=$INSTALL_DIR/freetype/build + && make && + make install</action> <action type="make_directory">$INSTALL_DIR/lib/python</action> - <action type="shell_command">export PYTHONPATH=$PYTHONPATH:$INSTALL_DIR/lib/python && python setup.py install --home $INSTALL_DIR --install-scripts $INSTALL_DIR/bin</action> + <action type="shell_command">export PYTHONPATH=$PYTHONPATH:$INSTALL_DIR/lib/python && + export CPLUS_INCLUDE_PATH=$INSTALL_DIR/freetype/build/include:$INSTALL_DIR/freetype/build/include/freetype2/ && + export LIBRARY_PATH=$INSTALL_DIR/freetype/build/lib/ && + python setup.py install --home $INSTALL_DIR --install-scripts $INSTALL_DIR/bin</action> <action type="set_environment"> <environment_variable name="PYTHONPATH" action="append_to">$INSTALL_DIR/lib/python</environment_variable> <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable> </action> </actions> </install> - <readme>Compiling numpy requires a C and Fortran compiler (typically gcc and gfortran).</readme> + <readme>Compiling matplotlib requires a Ccompiler (typically gcc), freetype2, numpy and libpng.</readme> </package> </tool_dependency>