Mercurial > repos > jankanis > package_python3_4
comparison tool_dependencies.xml @ 6:321cacd4ae43 draft
Add dependencies and settings for sqlite and gdbm, so that python can build its packages for those.
author | jankanis |
---|---|
date | Fri, 23 May 2014 08:44:18 -0400 |
parents | fb4d95141633 |
children | 34e257e3aceb |
comparison
equal
deleted
inserted
replaced
5:fb4d95141633 | 6:321cacd4ae43 |
---|---|
1 <?xml version="1.0"?> | 1 <?xml version="1.0"?> |
2 <tool_dependency> | 2 <tool_dependency> |
3 <package name="openssl" version="1.0.1g"> | 3 <package name="openssl" version="1.0.1g"> |
4 <repository changeset_revision="23ebff671a20" name="package_openssl" owner="jankanis" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" /> | 4 <repository changeset_revision="23ebff671a20" name="package_openssl" owner="jankanis" toolshed="http://toolshed.g2.bx.psu.edu" /> |
5 </package> | 5 </package> |
6 | 6 |
7 <package name="sqlite" version="3.8.3"> | |
8 <repository changeset_revision="706b1f3b1fc0" name="package_sqlite_3_8_3" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu" /> | |
9 </package> | |
10 | |
11 <package name="gdbm" version="1.11"> | |
12 <repository changeset_revision="15e7435c2663" name="package_gdbm_1_11" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu" /> | |
13 </package> | |
14 | |
15 | |
7 <package name="python3" version="3.4.1"> | 16 <package name="python3" version="3.4.1"> |
8 <install version="1.0"> | 17 <install version="1.0"> |
9 <actions> | 18 <actions> |
10 <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> |
11 <action type="set_environment_for_install"> | 20 <action type="set_environment_for_install"> |
12 <repository changeset_revision="23ebff671a20" name="package_openssl" owner="jankanis" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu"> | 21 <repository changeset_revision="23ebff671a20" name="package_openssl" owner="jankanis" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu"> |
13 <package name="openssl" version="1.0.1g" /> | 22 <package name="openssl" version="1.0.1g" /> |
14 </repository> | 23 </repository> |
24 <repository changeset_revision="706b1f3b1fc0" name="package_sqlite_3_8_3" owner="iuc" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu"> | |
25 <package name="sqlite" version="3.8.3" /> | |
26 </repository> | |
27 <repository changeset_revision="15e7435c2663" name="package_gdbm_1_11" owner="iuc" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu"> | |
28 <package name="gdbm" version="1.11" /> | |
29 </repository> | |
15 </action> | 30 </action> |
16 <!-- | 31 |
17 Python3 config doesn't search for some optional dependencies | 32 <action type="set_environment"> |
18 in non-standard locations. Patch config.py to also look at | 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> |
19 the repositories we just installed above | 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> |
20 --> | 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> |
21 <action type="shell_command"> | 36 </action> |
22 patch << EOF | 37 |
23 --- a/setup.py | 38 <action type="autoconf">--prefix=$INSTALL_DIR --with-ensurepip --enable-loadable-sqlite-extensions</action> |
24 +++ b/setup.py | |
25 @@ -750,10 +750,14 @@ | |
26 exts.append( Extension('_socket', ['socketmodule.c'], | |
27 depends = ['socketmodule.h']) ) | |
28 # Detect SSL support for the socket module (via _ssl) | |
29 + CUSTOM_OPENSSL = os.environ.get('OPENSSL_ROOT_DIR') | |
30 search_for_ssl_incs_in = [ | |
31 '/usr/local/ssl/include', | |
32 '/usr/contrib/ssl/include/' | |
33 ] | |
34 + if CUSTOM_OPENSSL: | |
35 + search_for_ssl_incs_in.append(os.path.join(CUSTOM_OPENSSL, 'include')) | |
36 + | |
37 ssl_incs = find_file('openssl/ssl.h', inc_dirs, | |
38 search_for_ssl_incs_in | |
39 ) | |
40 @@ -762,10 +766,12 @@ | |
41 ['/usr/kerberos/include']) | |
42 if krb5_h: | |
43 ssl_incs += krb5_h | |
44 - ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs, | |
45 - ['/usr/local/ssl/lib', | |
46 - '/usr/contrib/ssl/lib/' | |
47 - ] ) | |
48 + | |
49 + search_for_ssl_libs_in = ['/usr/local/ssl/lib', | |
50 + '/usr/contrib/ssl/lib/'] | |
51 + if CUSTOM_OPENSSL: | |
52 + search_for_ssl_libs_in.append(os.path.join(CUSTOM_OPENSSL, 'lib')) | |
53 + ssl_libs = find_library_file(self.compiler, 'ssl', lib_dirs, search_for_ssl_libs_in) | |
54 | |
55 if (ssl_incs is not None and | |
56 ssl_libs is not None): | |
57 EOF | |
58 </action> | |
59 <action type="autoconf">--prefix=$INSTALL_DIR --with-ensurepip</action> | |
60 <action type="set_environment"> | 39 <action type="set_environment"> |
61 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable> | 40 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable> |
62 <!-- empty PYTHONPATH, otherwise we will get Galaxy's Python 2 libraries in the Python 3 path--> | 41 <!-- empty PYTHONPATH, otherwise we will get Galaxy's Python 2 libraries in the Python 3 path --> |
63 <environment_variable action="set_to" name="PYTHONPATH" /> | 42 <environment_variable action="set_to" name="PYTHONPATH" /> |
64 <environment_variable action="set_to" name="PYTHONHOME">$INSTALL_DIR</environment_variable> | 43 <environment_variable action="set_to" name="PYTHONHOME">$INSTALL_DIR</environment_variable> |
65 <environment_variable action="prepend_to" name="PKG_CONFIG_PATH">$INSTALL_DIR/lib/pkgconfig</environment_variable> | 44 <environment_variable action="prepend_to" name="PKG_CONFIG_PATH">$INSTALL_DIR/lib/pkgconfig</environment_variable> |
66 </action> | 45 </action> |
67 </actions> | 46 </actions> |