Mercurial > repos > jankanis > package_python3_4
annotate tool_dependencies.xml @ 2:ab42c5133d1c draft
Depend on latest openssl and set prior_install_required
author | jankanis |
---|---|
date | Thu, 22 May 2014 06:28:24 -0400 |
parents | 09faf0ae581b |
children | d71cfcee2977 |
rev | line source |
---|---|
0 | 1 <?xml version="1.0"?> |
2 <tool_dependency> | |
3 <package name="openssl" version="1.0.1g"> | |
2
ab42c5133d1c
Depend on latest openssl and set prior_install_required
jankanis
parents:
1
diff
changeset
|
4 <repository changeset_revision="1c167e73d30f" name="package_openssl" owner="jankanis" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" /> |
0 | 5 </package> |
6 | |
7 <package name="python3" version="3.4.1"> | |
8 <install version="1.0"> | |
9 <actions> | |
1 | 10 <action type="download_by_url">https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz</action> |
0 | 11 <action type="set_environment_for_install"> |
2
ab42c5133d1c
Depend on latest openssl and set prior_install_required
jankanis
parents:
1
diff
changeset
|
12 <repository changeset_revision="1c167e73d30f" name="package_openssl" owner="jankanis" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu"> |
0 | 13 <package name="openssl" version="1.0.1g" /> |
14 </repository> | |
15 </action> | |
1 | 16 <action type="autoconf">--prefix=$INSTALL_DIR</action> |
17 <action type="set_environment"> | |
18 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable> | |
19 <!-- empty PYTHONPATH, otherwise we will get Galaxy's Python 2 libraries in the Python 3 path--> | |
20 <environment_variable action="set_to" name="PYTHONPATH" /> | |
21 <environment_variable action="set_to" name="PYTHONHOME">$INSTALL_DIR</environment_variable> | |
2
ab42c5133d1c
Depend on latest openssl and set prior_install_required
jankanis
parents:
1
diff
changeset
|
22 <environment_variable action="prepend_to" name="PKG_CONFIG_PATH">$INSTALL_DIR/lib/pkgconfig</environment_variable> |
1 | 23 </action> |
0 | 24 </actions> |
25 </install> | |
26 | |
27 <readme> | |
28 Python 3.4.1. Configured with the default settings, using --prefix=$INSTALL_DIR. | |
29 | |
30 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: | |
31 | |
32 <action type="set_environment_for_install"> | |
1 | 33 <repository name="python3" owner="jankanis"> |
0 | 34 <package name="python3" version="3.4.1" /> |
1 | 35 </repository> |
0 | 36 </action> |
37 <action type="shell_command"> | |
1 | 38 # Unset any saved environment settings from parent virtual |
39 # environments, e.g. for python 2 or if Galaxy itself is running | |
40 # from within a virtual environment. | |
41 unset _OLD_VIRTUAL_PATH; unset _OLD_VIRTUAL_PYTHONHOME | |
42 pyvenv {{$MY_PACKAGE_NAME}} | |
43 . {{$MY_PACKAGE_NAME}}/bin/activate | |
44 pip install {{$PYTHON-PACKAGE}} | |
0 | 45 </action> |
46 <action type="set_environment"> | |
1 | 47 <environment_variable name="PYTHONPATH" action="prepend_to">$INSTALL_DIR/lib/python3.4/site-packages:$INSTALL_DIR/lib64/python3.4/iste-packages</environment_variable> |
0 | 48 </action> |
49 | |
50 </readme> | |
51 | |
52 </package> | |
53 </tool_dependency> |