comparison tool_dependencies.xml @ 1:c322db44259d draft

build sqlite3; updated readme
author wolma
date Fri, 22 Apr 2016 09:27:14 -0400
parents 1c337560fa56
children 34b2ffc538de
comparison
equal deleted inserted replaced
0:1c337560fa56 1:c322db44259d
1 <?xml version="1.0"?> 1 <?xml version="1.0"?>
2 <tool_dependency> 2 <tool_dependency>
3 <package name="zlib" version="1.2.8"> 3 <package name="zlib" version="1.2.8">
4 <repository changeset_revision="dce22a65bac2" name="package_zlib_1_2_8" owner="wolma" prior_installation_required="True" toolshed="https://toolshed.g2.bx.psu.edu" /> 4 <repository changeset_revision="dce22a65bac2" name="package_zlib_1_2_8" owner="wolma" prior_installation_required="True" toolshed="https://toolshed.g2.bx.psu.edu" />
5 </package> 5 </package>
6 <package name="python3" version="3.4.1"> 6
7 <package name="sqlite" version="3.8.3">
8 <repository changeset_revision="706b1f3b1fc0" name="package_sqlite_3_8_3" owner="iuc" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" />
9 </package>
10
11 <package name="python3" version="3.4.1">
7 <install version="1.0"> 12 <install version="1.0">
8 <actions> 13 <actions>
9 <action type="download_by_url">https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz</action> 14 <action type="download_by_url">https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz</action>
15
10 <action type="set_environment_for_install"> 16 <action type="set_environment_for_install">
11 <repository changeset_revision="dce22a65bac2" name="package_zlib_1_2_8" owner="wolma" toolshed="https://toolshed.g2.bx.psu.edu"> 17 <repository changeset_revision="dce22a65bac2" name="package_zlib_1_2_8" owner="wolma" toolshed="https://toolshed.g2.bx.psu.edu">
12 <package name="zlib" version="1.2.8" /> 18 <package name="zlib" version="1.2.8" />
13 </repository> 19 </repository>
20
21 <repository changeset_revision="706b1f3b1fc0" name="package_sqlite_3_8_3" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu">
22 <package name="sqlite" version="3.8.3" />
23 </repository>
14 </action> 24 </action>
25
15 <action type="shell_command"> 26 <action type="shell_command">
16 # The python build system doesn't check CPATH / C(PLUS)_INCLUDE_PATH which is set by the depended-upon 27 # The python build system doesn't check CPATH / C(PLUS)_INCLUDE_PATH which is set by the depended-upon
17 # tool definitions for these sources, but it does check CPPFLAGS / LDFLAGS 28 # tool definitions for these sources, but it does check CPPFLAGS / LDFLAGS
18 # Currently not whitespace-safe, I haven't found a way yet to quote the *FLAGS values so that they are 29 # Currently not whitespace-safe, I haven't found a way yet to quote the *FLAGS values so that they are
19 # correctly recognized by both the python build process and the compiler. But as galaxy itself isn't 30 # correctly recognized by both the python build process and the compiler. But as galaxy itself isn't
37 unset PYTHONHOME 48 unset PYTHONHOME
38 49
39 ./configure --prefix="$INSTALL_DIR" --with-ensurepip \ 50 ./configure --prefix="$INSTALL_DIR" --with-ensurepip \
40 &amp;&amp; make \ 51 &amp;&amp; make \
41 &amp;&amp; make install 52 &amp;&amp; make install
42 </action> 53 </action>
54
43 <action type="set_environment"> 55 <action type="set_environment">
44 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable> 56 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
45 <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$ENV[LD_LIBRARY_PATH]</environment_variable> 57 <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$ENV[LD_LIBRARY_PATH]</environment_variable>
46 <!-- clear PYTHONPATH, otherwise we will get Galaxy's Python 2 libraries in the Python 3 path. --> 58 <!-- clear PYTHONPATH, otherwise we will get Galaxy's Python 2 libraries in the Python 3 path. -->
47 <environment_variable action="set_to" name="PYTHONPATH" /> 59 <environment_variable action="set_to" name="PYTHONPATH" />
56 The Python programming language version 3. 68 The Python programming language version 3.
57 69
58 http://www.python.org 70 http://www.python.org
59 71
60 72
61 A lean build of python 3.4.1. It does not include modules with external dependencies except for the zlib module (handled in here by depending on package_zlib_1_2_8). 73 A lean build of python 3.4.1.
74 It contains the zlib and sqlite3 modules as the only stdlib modules with
75 external dependencies (handled in here by depending on package_zlib_1_2_8
76 and package_sqlite_3_8_3).
62 77
63 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**. 78 In particular, this build does not compile Python's ssl module (which
79 would cause dependency on openssl and, in turn, on Perl).
64 80
65 For a build with more modules (and also ssl) included look at 81 This means that **the pip installation tool will not be available with
82 this build** !!
83
84 For a full build (including the ssl module) look at
66 https://toolshed.g2.bx.psu.edu/view/jankanis/package_python3_4 85 https://toolshed.g2.bx.psu.edu/view/jankanis/package_python3_4
67 written by jankanis, of which this package is a shameless plagiarism. 86 written by jankanis, of which this package is a shameless plagiarism.
68 87
69 Python as of version 3.3 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: 88 This version of Python includes a built-in virtual environment manager.
89 To create a Python 3 virtual env, include the following actions in your
90 tool_dependencies.xml, e.g. for a package MY_TOOL_venv:
70 91
71 &lt;action type="set_environment_for_install"&gt; 92 &lt;action type="set_environment_for_install"&gt;
72 &lt;repository name="package_python3_zlib_dependent_1_0" owner="wolma"&gt; 93 &lt;repository name="package_python3_zlib_dependent_1_0" owner="wolma"&gt;
73 &lt;package name="python3" version="3.4.1" /&gt; 94 &lt;package name="python3" version="3.4.1" /&gt;
74 &lt;/repository&gt; 95 &lt;/repository&gt;
87 # assuming you are in the download directory of the package 108 # assuming you are in the download directory of the package
88 109
89 $INSTALL_DIR/MY_TOOL_venv/bin/python3 setup.py install 110 $INSTALL_DIR/MY_TOOL_venv/bin/python3 setup.py install
90 &lt;/action&gt; 111 &lt;/action&gt;
91 112
92 For an example of how this could used by a package look at: 113 For an example of how this could used by a package look at the
114 tool_dependencies file of:
93 115
94 https://testtoolshed.g2.bx.psu.edu/view/wolma/package_mimodd_0_1_5 116 https://toolshed.g2.bx.psu.edu/view/wolma/mimodd
95 117
96 </readme> 118 </readme>
97 </package> 119 </package>
98 </tool_dependency> 120 </tool_dependency>