# HG changeset patch # User wolma # Date 1461683025 14400 # Node ID 3956f46882956c9987aeb58120b167f5a74a59a4 Uploaded diff -r 000000000000 -r 3956f4688295 tool_dependencies.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_dependencies.xml Tue Apr 26 11:03:45 2016 -0400 @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + https://www.python.org/ftp/python/3.4.4/Python-3.4.4.tgz + + + + + + + + + + + + + # The python build system doesn't check CPATH / C(PLUS)_INCLUDE_PATH which is set by the depended-upon + # tool definitions for these sources, but it does check CPPFLAGS / LDFLAGS + # Currently not whitespace-safe, I haven't found a way yet to quote the *FLAGS values so that they are + # correctly recognized by both the python build process and the compiler. But as galaxy itself isn't + # whitespace-safe either it doesn't really matter (currently). + oldifs="$IFS" + IFS=":" + for p in $CPLUS_INCLUDE_PATH + do + CPPFLAGS="$CPPFLAGS -I$p" + done + for p in $LD_LIBRARY_PATH + do + LDFLAGS="$LDFLAGS -L$p" + done + IFS="$oldifs" + export CPPFLAGS + export LDFLAGS + + # Clear variables that may be used in Galaxy's extenal python 2 environment + unset PYTHONPATH + unset PYTHONHOME + + ./configure --prefix="$INSTALL_DIR" \ + && make \ + && make install + + + + $INSTALL_DIR/bin + $ENV[LD_LIBRARY_PATH] + + + $INSTALL_DIR + $INSTALL_DIR/lib/pkgconfig + + -Wno-error=declaration-after-statement + + + + + The Python programming language version 3.4 + + http://www.python.org + + + A lean build of Python 3.4.x. + + This package receives bug fixes within the 3.4 release series! + + It contains the zlib and sqlite3 modules as the only stdlib modules with + external dependencies (handled in here by depending on package_zlib_1_2_8 + and package_sqlite_3_8_3). + + In particular, this build does not compile Python's ssl module (which + would cause dependency on openssl and, in turn, on Perl). + + This means that **the pip installation tool will not be available with + this build** !! + + For a full build (including the ssl module) look at + https://toolshed.g2.bx.psu.edu/view/jankanis/package_python3_4 + written by jankanis, of which this package is a shameless plagiarism. + + This version of Python includes a built-in virtual environment manager. + To create a Python 3 virtual env, include the following actions in your + tool_dependencies.xml, e.g. for a package MY_TOOL_venv: + + <action type="set_environment_for_install"> + <repository name="package_python3_zlib_dependent_1_0" owner="wolma"> + <package name="python3" version="3.4" /> + </repository> + <!-- other install time dependencies --> + </action> + + <action type="shell_command"> + + # Create virtual environment MY_TOOL_venv + # pip cannot be used for installation because it depends on ssl, + # which this build does not provide + + pyvenv --without-pip $INSTALL_DIR/MY_TOOL_venv + + # install python packages + # assuming you are in the download directory of the package + + $INSTALL_DIR/MY_TOOL_venv/bin/python3 setup.py install + </action> + + For an example of how this could used by a package look at the + tool_dependencies file of: + + https://toolshed.g2.bx.psu.edu/view/wolma/mimodd + + + +