comparison tool_dependencies.xml @ 9:d3ea5f1b4d79 draft

Another attempt at getting the environment settings right.
author jankanis
date Sat, 24 May 2014 17:54:04 -0400
parents a468d4d76af3
children 30e2c5ac5550
comparison
equal deleted inserted replaced
8:a468d4d76af3 9:d3ea5f1b4d79
15 15
16 <package name="python3" version="3.4.1"> 16 <package name="python3" version="3.4.1">
17 <install version="1.0"> 17 <install version="1.0">
18 <actions> 18 <actions>
19 <action type="download_by_url">https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz</action> 19 <action type="download_by_url">https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz</action>
20
20 <action type="set_environment_for_install"> 21 <action type="set_environment_for_install">
21 <repository changeset_revision="23ebff671a20" name="package_openssl" owner="jankanis" toolshed="http://toolshed.g2.bx.psu.edu"> 22 <repository changeset_revision="23ebff671a20" name="package_openssl" owner="jankanis" toolshed="http://toolshed.g2.bx.psu.edu">
22 <package name="openssl" version="1.0.1g" /> 23 <package name="openssl" version="1.0.1g" />
23 </repository> 24 </repository>
24 <repository changeset_revision="706b1f3b1fc0" name="package_sqlite_3_8_3" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu"> 25 <repository changeset_revision="706b1f3b1fc0" name="package_sqlite_3_8_3" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu">
27 <repository changeset_revision="15e7435c2663" name="package_gdbm_1_11" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu"> 28 <repository changeset_revision="15e7435c2663" name="package_gdbm_1_11" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu">
28 <package name="gdbm" version="1.11" /> 29 <package name="gdbm" version="1.11" />
29 </repository> 30 </repository>
30 </action> 31 </action>
31 32
32 <action type="set_environment"> 33 <action type="shell_command">
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> 34 # The python build system doesn't check C_INCLUDE_PATH which is set by the depended-upon tool
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> 35 # definitions for these sources, but it does check CFLAGS.
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> 36 export CFLAGS="$CFLAGS -I$SQLITE_ROOT_DIR/lib -I$GDBM_ROOT_PATH/lib -I$OPENSSL_ROOT_DIR/lib"
37 export LDFLAGS="$LDFLAGS -L$SQLITE_ROOT_DIR/include -L$GDBM_ROOT_PATH/include -L$OPENSSL_ROOT_DIR/include"
38 # Clear variables that may be used in Galaxy's extenal python 2 environment
39 unset PYTHONPATH
40 unset PYTHONHOME
41 ./configure --prefix=$INSTALL_DIR --with-ensurepip --enable-loadable-sqlite-extensions \
42 &amp;&amp; make \
43 &amp;&amp; make instal
36 </action> 44 </action>
45 <action type="make_install" />
37 46
38 <!-- We need a shell command here because the variables set above are not passed to type="autotool" commands -->
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>
40 <action type="make_install" />
41 <action type="set_environment"> 47 <action type="set_environment">
42 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable> 48 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
43 <!-- empty PYTHONPATH, otherwise we will get Galaxy's Python 2 libraries in the Python 3 path --> 49 <!-- empty PYTHONPATH, otherwise we will get Galaxy's Python 2 libraries in the Python 3 path -->
44 <environment_variable action="set_to" name="PYTHONPATH" /> 50 <environment_variable action="set_to" name="PYTHONPATH" />
45 <environment_variable action="set_to" name="PYTHONHOME">$INSTALL_DIR</environment_variable> 51 <environment_variable action="set_to" name="PYTHONHOME">$INSTALL_DIR</environment_variable>