annotate tool_dependencies.xml @ 8:a468d4d76af3 draft

Debugging revision, do not install!
author jankanis
date Sat, 24 May 2014 13:41:15 -0400
parents 34e257e3aceb
children d3ea5f1b4d79
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
1 <?xml version="1.0"?>
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
2 <tool_dependency>
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
3 <package name="openssl" version="1.0.1g">
7
34e257e3aceb add prior_installation_required
jankanis
parents: 6
diff changeset
4 <repository changeset_revision="23ebff671a20" name="package_openssl" owner="jankanis" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" />
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
5 </package>
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
6
6
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
7 <package name="sqlite" version="3.8.3">
7
34e257e3aceb add prior_installation_required
jankanis
parents: 6
diff changeset
8 <repository changeset_revision="706b1f3b1fc0" name="package_sqlite_3_8_3" owner="iuc" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" />
6
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
9 </package>
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
10
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
11 <package name="gdbm" version="1.11">
7
34e257e3aceb add prior_installation_required
jankanis
parents: 6
diff changeset
12 <repository changeset_revision="15e7435c2663" name="package_gdbm_1_11" owner="iuc" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" />
6
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
13 </package>
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
14
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
15
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
16 <package name="python3" version="3.4.1">
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
17 <install version="1.0">
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
18 <actions>
1
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
19 <action type="download_by_url">https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz</action>
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
20 <action type="set_environment_for_install">
7
34e257e3aceb add prior_installation_required
jankanis
parents: 6
diff changeset
21 <repository changeset_revision="23ebff671a20" name="package_openssl" owner="jankanis" toolshed="http://toolshed.g2.bx.psu.edu">
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
22 <package name="openssl" version="1.0.1g" />
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
23 </repository>
7
34e257e3aceb add prior_installation_required
jankanis
parents: 6
diff changeset
24 <repository changeset_revision="706b1f3b1fc0" name="package_sqlite_3_8_3" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu">
6
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
25 <package name="sqlite" version="3.8.3" />
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
26 </repository>
7
34e257e3aceb add prior_installation_required
jankanis
parents: 6
diff changeset
27 <repository changeset_revision="15e7435c2663" name="package_gdbm_1_11" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu">
6
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
28 <package name="gdbm" version="1.11" />
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
29 </repository>
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
30 </action>
6
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
31
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
32 <action type="set_environment">
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
33 <environment_variable action="set_to" name="CFLAGS">$CFLAGS -I$SQLITE_ROOT_DIR/lib -I$GDBM_ROOT_PATH/lib -I$OPENSSL_ROOT_DIR/lib</environment_variable>
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
34 <environment_variable action="set_to" name="CPPFLAGS">$CPPFLAGS -I$SQLITE_ROOT_DIR/lib -I$GDBM_ROOT_PATH/lib -I$OPENSSL_ROOT_DIR/lib</environment_variable>
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
35 <environment_variable action="set_to" name="LDFLAGS">$LDFLAGS -L$SQLITE_ROOT_DIR/include -L$GDBM_ROOT_PATH/include -L$OPENSSL_ROOT_DIR/include</environment_variable>
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
36 </action>
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
37
8
a468d4d76af3 Debugging revision, do not install!
jankanis
parents: 7
diff changeset
38 <!-- We need a shell command here because the variables set above are not passed to type="autotool" commands -->
a468d4d76af3 Debugging revision, do not install!
jankanis
parents: 7
diff changeset
39 <action type="shell_command">bash &lt;/dev/tty &gt;/dev/tty 2&gt;&amp;1 &amp;&amp; ./configure --prefix=$INSTALL_DIR --with-ensurepip --enable-loadable-sqlite-extensions</action>
a468d4d76af3 Debugging revision, do not install!
jankanis
parents: 7
diff changeset
40 <action type="make_install" />
1
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
41 <action type="set_environment">
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
42 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
6
321cacd4ae43 Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
jankanis
parents: 5
diff changeset
43 <!-- empty PYTHONPATH, otherwise we will get Galaxy's Python 2 libraries in the Python 3 path -->
1
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
44 <environment_variable action="set_to" name="PYTHONPATH" />
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
45 <environment_variable action="set_to" name="PYTHONHOME">$INSTALL_DIR</environment_variable>
4
9491d3c0dbe6 Add --with-ensurepip
jankanis
parents: 3
diff changeset
46 <environment_variable action="prepend_to" name="PKG_CONFIG_PATH">$INSTALL_DIR/lib/pkgconfig</environment_variable>
1
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
47 </action>
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
48 </actions>
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
49 </install>
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
50
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
51 <readme>
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
52 Python 3.4.1. Configured with the default settings, using --prefix=$INSTALL_DIR.
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
53
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
54 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:
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
55
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
56 &lt;action type="set_environment_for_install"&gt;
1
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
57 &lt;repository name="python3" owner="jankanis"&gt;
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
58 &lt;package name="python3" version="3.4.1" /&gt;
1
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
59 &lt;/repository&gt;
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
60 &lt;/action&gt;
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
61 &lt;action type="shell_command"&gt;
1
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
62 # Unset any saved environment settings from parent virtual
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
63 # environments, e.g. for python 2 or if Galaxy itself is running
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
64 # from within a virtual environment.
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
65 unset _OLD_VIRTUAL_PATH; unset _OLD_VIRTUAL_PYTHONHOME
3
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
66 pyvenv {{\$MY_PACKAGE_NAME}}
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
67 . {{\$MY_PACKAGE_NAME}}/bin/activate
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
68 pip3 install {{\$PYTHON-PACKAGE}}
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
69 &lt;/action&gt;
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
70 &lt;action type="set_environment"&gt;
3
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
71 &lt;environment_variable name="PYTHONPATH" action="prepend_to"&gt;\$INSTALL_DIR/lib/python3.4/site-packages&lt;/environment_variable&gt;
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
72 &lt;/action&gt;
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
73
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
74 </readme>
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
75
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
76 </package>
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
77 </tool_dependency>