view tool_dependencies.xml @ 3:cf32ec1ccccd draft

Uploaded
author saketkc
date Sat, 07 Jun 2014 15:19:55 -0400
parents b39fd549b590
children cd979c60e4fb
line wrap: on
line source

<?xml version='1.0' encoding='utf-8'?>
<tool_dependency>
    <package name="pycurl" version="7.19.3.1">
        <readme>
            This Galaxy Tool shed package installs pycurl(https://pypi.python.org/pypi/pycurl)
            package.

            The corresponding PYTHONPATH is accessible via PYTHONPATH_PYCURL

            Developmental version is hosted on Github:  https://github.com/saketkc/galaxy_tools/packages/package_pycurl_7_19_3_1/
        </readme>
        <install version="1.0">
            <actions>
                <action type="download_by_url">http://curl.haxx.se/download/curl-7.36.0.tar.gz</action>
                <action type="shell_command">make</action>
                <action type="move_directory_files">
                    <source_directory>include</source_directory>
                        <destination_directory>$INSTALL_DIR</destination_directory>
                </action>
                <action type="set_environment">
                    <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR</environment_variable>
                    <environment_variable name="CURL" action="set_to">$INSTALL_DIR</environment_variable>
                </action>
            </actions>


            <actions>
                <action type="download_by_url">https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.3.1.tar.gz</action>
                <action type="make_directory">$INSTALL_DIR/lib/python</action>
                <action type="shell_command">
                    export PYTHONPATH=$PYTHONPATH:$INSTALL_DIR/lib/python &amp;&amp;
                    python setup.py build --with-ssl --curl-config=$CURL/curl-config &amp;&amp;
                    python setup.py install --install-lib $INSTALL_DIR/lib/python
                </action>
                <action type="set_environment">
                    <environment_variable action="append_to" name="PYTHONPATH">$INSTALL_DIR/lib/python</environment_variable>
                    <environment_variable action="set_to" name="PYTHONPATH_PYCURL">$INSTALL_DIR/lib/python</environment_variable>
                </action>
            </actions>
        </install>
    </package>
</tool_dependency>