annotate tool_dependencies.xml @ 5:fb4d95141633 draft

update dependency to latest openssl that builds shared libraries
author jankanis
date Thu, 22 May 2014 11:14:11 -0400
parents 9491d3c0dbe6
children 321cacd4ae43
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">
5
fb4d95141633 update dependency to latest openssl that builds shared libraries
jankanis
parents: 4
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
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
7 <package name="python3" version="3.4.1">
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
8 <install version="1.0">
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
9 <actions>
1
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
10 <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
11 <action type="set_environment_for_install">
5
fb4d95141633 update dependency to latest openssl that builds shared libraries
jankanis
parents: 4
diff changeset
12 <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
13 <package name="openssl" version="1.0.1g" />
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
14 </repository>
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
15 </action>
4
9491d3c0dbe6 Add --with-ensurepip
jankanis
parents: 3
diff changeset
16 <!--
9491d3c0dbe6 Add --with-ensurepip
jankanis
parents: 3
diff changeset
17 Python3 config doesn't search for some optional dependencies
9491d3c0dbe6 Add --with-ensurepip
jankanis
parents: 3
diff changeset
18 in non-standard locations. Patch config.py to also look at
9491d3c0dbe6 Add --with-ensurepip
jankanis
parents: 3
diff changeset
19 the repositories we just installed above
9491d3c0dbe6 Add --with-ensurepip
jankanis
parents: 3
diff changeset
20 -->
9491d3c0dbe6 Add --with-ensurepip
jankanis
parents: 3
diff changeset
21 <action type="shell_command">
9491d3c0dbe6 Add --with-ensurepip
jankanis
parents: 3
diff changeset
22 patch &lt;&lt; EOF
3
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
23 --- a/setup.py
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
24 +++ b/setup.py
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
25 @@ -750,10 +750,14 @@
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
26 exts.append( Extension('_socket', ['socketmodule.c'],
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
27 depends = ['socketmodule.h']) )
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
28 # Detect SSL support for the socket module (via _ssl)
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
29 + CUSTOM_OPENSSL = os.environ.get('OPENSSL_ROOT_DIR')
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
30 search_for_ssl_incs_in = [
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
31 '/usr/local/ssl/include',
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
32 '/usr/contrib/ssl/include/'
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
33 ]
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
34 + if CUSTOM_OPENSSL:
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
35 + search_for_ssl_incs_in.append(os.path.join(CUSTOM_OPENSSL, 'include'))
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
36 +
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
37 ssl_incs = find_file('openssl/ssl.h', inc_dirs,
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
38 search_for_ssl_incs_in
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
39 )
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
40 @@ -762,10 +766,12 @@
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
41 ['/usr/kerberos/include'])
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
42 if krb5_h:
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
43 ssl_incs += krb5_h
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
44 - ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
45 - ['/usr/local/ssl/lib',
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
46 - '/usr/contrib/ssl/lib/'
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
47 - ] )
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
48 +
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
49 + search_for_ssl_libs_in = ['/usr/local/ssl/lib',
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
50 + '/usr/contrib/ssl/lib/']
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
51 + if CUSTOM_OPENSSL:
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
52 + search_for_ssl_libs_in.append(os.path.join(CUSTOM_OPENSSL, 'lib'))
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
53 + ssl_libs = find_library_file(self.compiler, 'ssl', lib_dirs, search_for_ssl_libs_in)
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
54
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
55 if (ssl_incs is not None and
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
56 ssl_libs is not None):
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
57 EOF
4
9491d3c0dbe6 Add --with-ensurepip
jankanis
parents: 3
diff changeset
58 </action>
9491d3c0dbe6 Add --with-ensurepip
jankanis
parents: 3
diff changeset
59 <action type="autoconf">--prefix=$INSTALL_DIR --with-ensurepip</action>
1
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
60 <action type="set_environment">
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
61 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
62 <!-- empty PYTHONPATH, otherwise we will get Galaxy's Python 2 libraries in the Python 3 path-->
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
63 <environment_variable action="set_to" name="PYTHONPATH" />
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
64 <environment_variable action="set_to" name="PYTHONHOME">$INSTALL_DIR</environment_variable>
4
9491d3c0dbe6 Add --with-ensurepip
jankanis
parents: 3
diff changeset
65 <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
66 </action>
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
67 </actions>
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
68 </install>
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
69
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
70 <readme>
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
71 Python 3.4.1. Configured with the default settings, using --prefix=$INSTALL_DIR.
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
72
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
73 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
74
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
75 &lt;action type="set_environment_for_install"&gt;
1
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
76 &lt;repository name="python3" owner="jankanis"&gt;
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
77 &lt;package name="python3" version="3.4.1" /&gt;
1
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
78 &lt;/repository&gt;
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
79 &lt;/action&gt;
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
80 &lt;action type="shell_command"&gt;
1
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
81 # Unset any saved environment settings from parent virtual
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
82 # environments, e.g. for python 2 or if Galaxy itself is running
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
83 # from within a virtual environment.
09faf0ae581b Fix some whitespace
jankanis
parents: 0
diff changeset
84 unset _OLD_VIRTUAL_PATH; unset _OLD_VIRTUAL_PYTHONHOME
3
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
85 pyvenv {{\$MY_PACKAGE_NAME}}
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
86 . {{\$MY_PACKAGE_NAME}}/bin/activate
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
87 pip3 install {{\$PYTHON-PACKAGE}}
0
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
88 &lt;/action&gt;
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
89 &lt;action type="set_environment"&gt;
3
d71cfcee2977 Fix openssl search path in setup.py
jankanis
parents: 2
diff changeset
90 &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
91 &lt;/action&gt;
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
92
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
93 </readme>
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
94
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
95 </package>
e9407b729a69 Uploaded
jankanis
parents:
diff changeset
96 </tool_dependency>