Mercurial > repos > soranzo > package_icqsol_test
changeset 0:b35163737dc0 draft default tip
Uploaded
| author | soranzo |
|---|---|
| date | Wed, 13 Jul 2016 10:35:13 -0400 |
| parents | |
| children | |
| files | tool_dependencies.xml |
| diffstat | 1 files changed, 102 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_dependencies.xml Wed Jul 13 10:35:13 2016 -0400 @@ -0,0 +1,102 @@ +<?xml version="1.0"?> +<tool_dependency> + <package name="cmake" version="3.2.3"> + <repository changeset_revision="2da7b99cb1a1" name="package_cmake_3_2_3" owner="iuc" prior_installation_required="True" toolshed="https://testtoolshed.g2.bx.psu.edu" /> + </package> + <package name="icqsol" version="1.0"> + <install version="1.0"> + <actions_group> + <actions architecture="x86_64" os="linux"> + <!-- Install and compile Anaconda 2.3.0 which provides Python 2.7.10 --> + <action target_filename="Anaconda-2.3.0-Linux-x86_64.sh" type="download_file">https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda-2.3.0-Linux-x86_64.sh</action> + + <action type="set_environment_for_install"> + <repository changeset_revision="2da7b99cb1a1" name="package_cmake_3_2_3" owner="iuc" toolshed="https://testtoolshed.g2.bx.psu.edu"> + <package name="cmake" version="3.2.3" /> + </repository> + </action> + + <action type="shell_command">bash Anaconda-2.3.0-Linux-x86_64.sh -b -f -p $INSTALL_DIR</action> + + <!-- Install VTK 6.3.0 into the above Python --> + <action type="make_directory">$TMP_WORK_DIR/vtk</action> + <action type="change_directory">$TMP_WORK_DIR/vtk</action> + <action target_filename="VTK-6.2.0.tar.gz" type="download_file">http://www.vtk.org/files/release/6.2/VTK-6.2.0.tar.gz</action> + <action type="shell_command">tar xfvz VTK-6.2.0.tar.gz</action> + <action type="change_directory">VTK-6.2.0</action> + <action type="shell_command"> + + export PATH=$INSTALL_DIR/bin:$PATH && + export PYTHONPATH=$INSTALL_DIR:$PYTHONPATH && + export PKG_CONFIG_PATH=$INSTALL_DIR/lib/pkgconfig:$PKG_CONFIG_PATH && + cmake \ + -DCMAKE_BUILD_TYPE:STRING=Release \ + -DCMAKE_INSTALL_PREFIX:PATH=`pwd`/../build \ + -DVTK_WRAP_PYTHON:BOOL=ON \ + -DVTK_Group_StandAlone:BOOL=OFF \ + -DVTK_Group_Rendering:BOOL=OFF \ + -DModule_vtkCommonColor:BOOL=ON \ + -DModule_vtkCommonComputationalGeometry:BOOL=ON \ + -DModule_vtkCommonDataModel:BOOL=ON \ + -DModule_vtkCommonExecutionModel:BOOL=ON \ + -DModule_vtkCommonMath:BOOL=ON \ + -DModule_vtkCommonMisc:BOOL=ON \ + -DModule_vtkCommonSystem:BOOL=ON \ + -DModule_vtkCommonTransforms:BOOL=ON \ + -DModule_vtkFiltersCore:BOOL=ON \ + -DModule_vtkFiltersExtraction:BOOL=ON \ + -DModule_vtkFiltersGeneral:BOOL=ON \ + -DModule_vtkFiltersGeneric:BOOL=ON \ + -DModule_vtkFiltersGeometry:BOOL=ON \ + -DModule_vtkFiltersPython:BOOL=ON \ + -DModule_vtkImagingHybrid:BOOL=ON \ + -DModule_vtkIOCore:BOOL=ON \ + -DModule_vtkIOGeometry:BOOL=ON \ + -DModule_vtkIOLegacy:BOOL=ON \ + -DModule_vtkWrappingPythonCore:BOOL=ON \ + -DModule_vtkIOPLY:BOOL=ON \ + -DVTK_INSTALL_PYTHON_MODULE_DIR:PATH=$INSTALL_DIR/lib/python2.7/site-packages \ + -DPYTHON_EXECUTABLE:PATH=$INSTALL_DIR/bin/python \ + -DPYTHON_LIBRARY:PATH=$INSTALL_DIR/lib/libpython2.7.so \ + -DPYTHON_INCLUDE_DIR:PATH=$INSTALL_DIR/include/python2.7 . && + make && + make install + + </action> + <action type="move_directory_files"> + <source_directory>../build/bin</source_directory> + <destination_directory>$INSTALL_DIR/bin</destination_directory> + </action> + <action type="move_directory_files"> + <source_directory>../build/include</source_directory> + <destination_directory>$INSTALL_DIR/include</destination_directory> + </action> + <action type="move_directory_files"> + <source_directory>../build/lib</source_directory> + <destination_directory>$INSTALL_DIR/lib</destination_directory> + </action> + + <!-- Install and compile icqsol version 1.0 as a package in the above Python --> + <action type="make_directory">$TMP_WORK_DIR/icqsol</action> + <action type="change_directory">$TMP_WORK_DIR/icqsol</action> + <action type="shell_command">git clone https://github.com/pletzer/icqsol.git</action> + <action type="change_directory">icqsol</action> + <action type="shell_command"> + + export PATH=$INSTALL_DIR/bin:$PATH && + $INSTALL_DIR/bin/python setup.py develop --prefix=$INSTALL_DIR + $INSTALL_DIR/bin/python setup.py install --prefix=$INSTALL_DIR + + </action> + + <action type="set_environment"> + <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable> + <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/lib</environment_variable> + <environment_variable action="set_to" name="ICQSOL_ROOT_DIR">$INSTALL_DIR</environment_variable> + </action> + </actions> + </actions_group> + </install> + <readme /> + </package> +</tool_dependency>
